Question: What happens when out-of-bound access occur? For example; Int scores[3] ={4,5,6 Cout < < scores[5]; a. Additional array elements are added so array element
What happens when out-of-bound access occur? For example; Int scores[3] ={4,5,6 Cout < < scores[5]; a. Additional array elements are added so array element 5 is in the memory b.The compiler restricts and prevents this action to happen c. It accesses other data that are not part of the array d. This action gets ignored since it's not a part of the declared array
Step by Step Solution
3.38 Rating (170 Votes )
There are 3 Steps involved in it
When attempting to access an array outofbounds in C as in accessing scores5 when only scores3 is def... View full answer
Get step-by-step solutions from verified subject matter experts
