Which of the following is not a correct way to initialize an array?

a) int n[5] = {0, 7, 0, 3, 8, 2};
b) int n[] = {0, 7, 0, 3, 8, 2};
c) int n[5] = {7};
d) int n[5] = {6, 6, 6};

a) int n[5] = {0, 7, 0, 3, 8, 2};

Computer Science & Information Technology

You might also like to view...

The ________ scheduler is also known as the dispatcher.

A. long-term B. medium-term C. short-term D. I/O

Computer Science & Information Technology

Suppose z = 1834.762. The output of the statementSystem.out.printf("%.1f", z);isĀ  1834.800.

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

Computer Science & Information Technology