Google News
logo
CPP - Quiz(MCQ)
What is the correct syntax of declaring an array class?
A)
array<type,size> arr;
B)
Array<type,size> arr;
C)
array<type> arr;
D)
Array<type> arr;

Correct Answer :   array<type,size> arr;


Explanation : The declaration of array class starts with a keyword array followed by <> specifying the type and size of array and then the name of the identifier. Example: array<int, 10> arr; arr is an array class of type in with size = 10.

Advertisement