Chapter - 9: Arrays

What would happen if you assign a value to an element of an array whose subscript exceeds the size of the array?


G
Sections
4
Exercises

1. the element will be set to 0
2. nothing, it’s done all the time
3. other data may be overwritten
4. error message from the compiler 


Ans: 2. nothing, it's done all the time.


© 2021 Garbage Valuegarbage value logo