Skip to content

Latest commit

 

History

History
1 lines (1 loc) · 309 Bytes

4.18.md

File metadata and controls

1 lines (1 loc) · 309 Bytes

The loop will print all elements except the first one in the vector, and also try to dereference to one past the last element, which is an error. Also, if there is no negative value in the vector, the loop will continue to dereference whatever in memeory until a negative value is found, which is a disaster.