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