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}
Answer: A
Computer Science & Information Technology