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);.

a. int[] n = {1, 2, 3, 4, 5};.

Computer Science & Information Technology

You might also like to view...

The ________ sign should be put around dates so that Access knows they are dates

Fill in the blank(s) with correct word

Computer Science & Information Technology

The main integrated circuit chip in your computer is the ________

Fill in the blank(s) with correct word

Computer Science & Information Technology