Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void funkcija(int & x, int & y) {
- x += 1;
- y += 1;
- }
- int main() {
- int x = 10;
- int y = 20;
- funkcija(x, y);
- cout << x << " " << y << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement