Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void vectorCheck()
- {
- std::vector<int> v = {1, 2, 3};
- int &r = v[0];
- v.push_back(4);
- std::cout << r << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement