Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- void f(int &x, double y, int z, const int &a){
- std::cout<<x<<y<<z<<a<<std::endl;
- x=x*2;
- std::cout<<x<<y<<z<<a<<std::endl;
- y++;
- std::cout<<x<<y<<z<<a<<std::endl;
- }
- int main()
- {
- int x = 6;
- f(x,x,x,x);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement