C Array - C programming (MCQ) questions
Here, you can read C Array multiple choice questions and answers with explanation.
1) What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?
- Published on 26 Feb 17
a. The element will be set to 0.
b. The compiler would report an error.
c. The program may crash if some important data gets overwritten.
d. The array size would appropriately grow.
ANSWER: The program may crash if some important data gets overwritten.
No explanation is available for this question!