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