Question DSA-ARR-0023
EasyIn C, what happens if you read a[10] from an array declared as int a[10]?
- A.
It returns a[0]
- B.
The compiler always reports an error
- C.
Show answer and explanation
Answer: C
C does no bounds checking; valid indices are 0 to 9.