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