fork download
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. void fun(const int &i)
  5. {
  6. cout << "fun(const int &) called ";
  7. }
  8. void fun(int &i)
  9. {
  10. cout << "fun(int &) called " ;
  11. }
  12. int main()
  13. {
  14. int x = 5,y=20,z=0,i;
  15. //fun(i);
  16.  
  17. i=x++ + ++x + x++;
  18. cout<<"\nValue of i: "<<i;
  19. cout<<"\nValue of x: "<<x;
  20. return 0;
  21. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
Value of i: 19
Value of x: 8