Facebook
From Sexy Penguin, 4 Years ago, written in C++.
Embed
Download Paste or View Raw
Hits: 200
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void f(int a, int b)
  6. {
  7.     cout<<a<<" "<<b<<"\n";
  8. }
  9.  
  10. int main()
  11. {
  12.     int x = 0;
  13.     f(x, x++);
  14.     cout<<x<<"\n";
  15.    
  16.     x = 0;
  17.     f(x, ++x);
  18.     cout<<x<<"\n";
  19. }