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

1
The element will be set to 0
2
The compiler would report an error
3
The program may crash if some important data gets overwritten
4
The array size would appropriately grow

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation