Question: What happens if you try to access and elements in a vector that is out of range / bounds ? The element is automatically added
What happens if you try to access and elements in a vector that is out of rangebounds
The element is automatically added to the vector
the element at the beginning of the vector is removed
The program crashes with a runtime error, or a random memory location is returned
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
