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