fork download
  1. #include <stdio.h>
  2.  
  3. void foo(int x)
  4. {
  5. x = 55;
  6. printf("%d\n", x);
  7. }
  8. int main(void) {
  9. int x = 42;
  10. printf("%d\n", x);
  11. foo(x);
  12. printf("%d\n", x);
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5460KB
stdin
Standard input is empty
stdout
42
55
42