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