railway RRB JE (CBT I + CBT II) Mock Test 2024 Programming and Data Structure Programming in C Pointer
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