fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int f (int a, int *b, int c)
  5. {
  6. return (++a + ++(*b) + c++);
  7. }
  8.  
  9. int main()
  10. {
  11. int a(3), b(1), c(2);
  12. int z = f(c, &b, a);
  13. cout<<a<<b<<c<<z<<endl;
  14. cin.get();
  15. }
  16.  
Success #stdin #stdout 0s 3464KB
stdin
Standard input is empty
stdout
3228