Solved

Which One of the Following Statements Is a Valid Initialization

Question 2

Multiple Choice

Which one of the following statements is a valid initialization of an array named somearray of ten elements?


A) int[] somearray = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
B) int somearray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
C) int[10] somearray = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
D) int somearray[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };

Correct Answer:

verifed

Verified

Related Questions