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