Advertisement
Guest User

Untitled

a guest
Nov 15th, 2012
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int f(const int& x, int* y)
  5. {
  6.     *y = 5;
  7.     return x;
  8. }
  9.  
  10. int main()
  11. {
  12.     int x = 10;
  13.     cout << f(x, &x) << endl;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement