fork(5) download
  1. #include <stdio.h>
  2.  
  3. int f(int x, int *py, int **ppz)
  4. {
  5. int y, z;
  6. **ppz += 1;
  7. z = **ppz;
  8. *py += 2;
  9. y = *py;
  10. x += 3;
  11. return x + y + z;
  12. }
  13.  
  14. int main()
  15. {
  16. int c, *b, **a;
  17. c = 4;
  18. b = &c;
  19. a = &b;
  20. printf( "%d\n", f(c,b,a));
  21. printf( "%d\n", c);
  22. }
  23.  
Runtime error #stdin #stdout 0s 2008KB
stdin
Standard input is empty
stdout
19
7