SHARE
TWEET

Untitled

a guest Nov 15th, 2012 41 Never
  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. }
RAW Paste Data
Top