Solved

Of the Following Statements, Which One Correctly Initializes an Int

Question 60

Multiple Choice

Of the following statements, which one correctly initializes an int array named quarters with the values 1, 2, 3, and 4?


A) const int SIZE = 4; int[] quarters = new int[SIZE] { 1, 2, 3, 4 };
B) int[] quarters = new int[] { 1, 2, 3, 4 };
C) int[] quarters = { 1, 2, 3, 4 };
D) All of these statements are correct.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions