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

You might also like to view...

A(n) ________ data table changes the values in two cells

Fill in the blank(s) with correct word

Computer Science & Information Technology

A visual weighted list is known as a tag cloud.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology