MCQ 11 Mark
What happens if a C program tries to access a value from an array element whose subscript exceeds the size of array ?
- AThe element will be set to 0.
- BThe compiler would report an error.
- ✓The program may crash or gives garbage dat
- DThe array size increases automatically.
Answer
View full question & answer→Correct option: C.
The program may crash or gives garbage dat
C