Question

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};

Answer

This answer is hidden. It contains 3 characters.