fork download
  1. #include <stdio.h>
  2. int foo( int a, int *b ) {
  3. int c;
  4. *b = a + 1;
  5. c = a - 1;
  6. return c;
  7. }
  8. int main() {
  9. int a = 5;
  10. int b = 3;
  11. int c = 0;
  12. b = foo( a, &c );
  13. c = foo( b, &a );
  14. printf("a=%d b=%d c=%d", a, b, c );
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
a=5 b=4 c=3