fork download
  1. #include <stdio.h>
  2.  
  3. void func(void){
  4. int count = 0;
  5. count++;
  6. printf("funcの実行数:%d\n", count);
  7. }
  8. int main(void) {
  9. func();
  10. func();
  11. func();
  12. func();
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
funcの実行数:1
funcの実行数:1
funcの実行数:1
funcの実行数:1