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