Q.

What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?

A. The element will be set to 0.
B. The compiler would report an error.
C. The array size would appropriately grow.
D. The program may crash if some important data gets overwritten.
Answer» D. The program may crash if some important data gets overwritten.
3.9k
0
Do you find this helpful?
55

Discussion

No comments yet