What is the correct syntax of declaring an array class?

a) array<type> arr;
b) array<type,size> arr;
c) Array<type> arr;
d) Array<type,size> arr;

1 thought on “What is the correct syntax of declaring an array class?”

  1. b
    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 arr; arr is an array class of type in with size = 10.

Leave a Comment