Skip to content

Files

Latest commit

 

History

History

18

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Exercise 4.18

What would happen if the while loop on page 148 that prints the elements from a vector used the prefix increment operator?

Solution

The first element of the vector would be skipped, and the program would attempt to print the value of one element past the end of the vector.