fork(1) download
  1. #include <stdio.h>
  2.  
  3. int x = 100;
  4.  
  5. int f (void)
  6. {
  7. return x;
  8. }
  9.  
  10. int main (int argc, char *argv[])
  11. {
  12. int x = 7;
  13. printf ("x == %i\n", x);
  14.  
  15. printf ("f() == %i\n", f());
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0.02s 1720KB
stdin
Standard input is empty
stdout
x == 7
f() == 100