Advertisements
Advertisements
Question
Which of the following is the correct usage?
Options
int a[−40]
int a[40]
float a[0 − 40]
None
MCQ
Solution
int a[40]
Explanation:
This is correct because it provides an array of 40 integers. The array size is positive, and the syntax is valid.
shaalaa.com
Is there an error in this question or solution?