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