fork(1) download
  1. #include <stdio.h>
  2.  
  3. inline int f1(void) {
  4. static int a;
  5. return a++;
  6. }
  7. int f2(void) { return f1(); }
  8. int f3(void) { return f1(); }
  9. int main() {
  10. printf("%i %i\n", f2(), f3());
  11. printf("%i %i\n", f2(), f3());
  12. }
Runtime error #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
1 0
3 2