Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int funckija(int &x, int &z, int y) {
- x *= 2;
- y = 3;
- z = x + y;
- return x + y;
- }
- int main() {
- int a = 5, b = 10, c = 3;
- cout << funckija(a, b, c) << endl;
- cout << a << " " << b << " " << c << endl;
- return 0;
- }
- // 13
- // 10 13 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement