Which of the following statements declares a one-dimensional array containing two integer values?
A. int numbers[3] = {1, 2, 3};
B. char letters[2] = {‘a', ‘b'};
C. int characters[2] = {45, 87};
D. int ages[6] = {0};
Answer: C
Computer Science & Information Technology
You might also like to view...
Insurance usually is considered to be a variable cost
Indicate whether the statement is true or false
Computer Science & Information Technology
In the Insert For Each In Array Loop dialog box, we can specify the ____ of values we have in our array, (2) specify a(n) ____ for one of the items in the array, and (3) specify the ____ through which we want to iterate.
A. array; generic variable name; type B. list; index; generic array name C. type; generic variable name; array D. index; generic array name; list
Computer Science & Information Technology