Solved

Which of the Following Statements Correctly Initializes an Array with an Initialization

Question 75

Multiple Choice

Which of the following statements correctly initializes an array with an initialization list?


A) int[] nums = {2, 4, 8};
B) int[] nums = (2, 4, 8) ;
C) int nums = [2, 4, 8];
D) int nums() = int{2, 4, 8}

Correct Answer:

verifed

Verified

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

Related Questions