Suppose v is an array with 100 int elements. If 100 is assigned to v[100], what happens?

2
Suppose v is an array with 100 int elements. If 100 is assigned to v[100], what happens?

LANGUAGE: C++

CHALLENGE:

Suppose v is an array with 100 int elements. If 100 is assigned to v[100], what happens?

SOLUTION:

Another variable or array will very likely be unexpectedly modified.



          

          

2 comments

Add comment