Solved

Which of the Following Initializer Lists Would Correctly Set the Elements

Question 41

Multiple Choice

Which of the following initializer lists would correctly set the elements of array n?


A) int[] n = {1, 2, 3, 4, 5};.
B) array n[int] = {1, 2, 3, 4, 5};.
C) int n[5] = {1; 2; 3; 4; 5};.
D) int n = new int(1, 2, 3, 4, 5) ;.

Correct Answer:

verifed

Verified

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

Related Questions