?Which statement correctly declares and populates a one-dimensional array?

A. ?char myArray[4] = {'10', '100', '1000', '10000'};
B. ?char myArray{4} =  ['10', '100', '1000', '10000'];
C. ?int myArray[4] = {10, 100, 1000, 10000};
D. ??int myArray{4} = [10, 100, 1000, 10000];


Answer: C

Computer Science & Information Technology

You might also like to view...

When a function has a reference parameter, what is passed to a function’s data area when the function is called?

What will be an ideal response?

Computer Science & Information Technology

____ are generally the most reliable and cost-efficient ways to ensure a stable and well-defined network architecture.

A. Firewalls B. Proxies C. VPNs D. Routers

Computer Science & Information Technology

A tri-fold brochure is a document that has ________ and is folded in thirds

A) one page with three columns on the page B) three pages with one column on each page C) two pages with three columns on each page D) three pages with two columns on each page

Computer Science & Information Technology

If you don't assign a tab order to any fields, visitors who use the [Tab] key will move through the field in the order in which the fields appear ____.

A. in the HTML code B. on the Web page C. in the saved file D. in the web browser

Computer Science & Information Technology