fork download
  1. #include <stdio.h>
  2.  
  3.  
  4. int a;
  5. void fn1(void){
  6. a=a+10;
  7. }
  8. void fn2(int a){
  9. a=a+20;
  10. }
  11. int main(void){
  12. fn1();
  13. fn2(5);
  14. printf("%d\n",a);
  15.  
  16. return 0;}
  17.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
10