Toggle nav
Answer : Option B
Explanation :
Option A is incorrect because array cannot be declared using Parentheses but square brackets.
Answer : Option A
Option B is the legal way to declare and initialize an array with five elements.
Answer : Option D
Which of the following statements are valid array declaration ?
(A) int number(); (B) float average[]; (C) double[] marks; (D) counter int[];
Answer : Option C