Which of the following correctly declares an array in C++?
Show answerHide answer
Correct answer: (C) int array[10];
Explanation
int array[10]; declares an array of 10 integers by giving the type, the name and the size in square brackets.
Correct answer: (C) int array[10];
Explanation
int array[10]; declares an array of 10 integers by giving the type, the name and the size in square brackets.
This is question 59 of BPSC TRE 1.0 (2023) Computer Science Class 11-12 — Previous Year Paper. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.