Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void AddOne(int &y) {
- y++;
- }
- int main(void) {
- int x = 5;
- cout << "x = " << x << endl;
- AddOne(x);
- cout << "x = " << x << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement