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