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