fork(1) download
  1. #include <stdio.h>
  2.  
  3. struct foo
  4. {
  5. struct bar *next; /* Linked list */
  6. };
  7.  
  8.  
  9. int main(void) {
  10. struct bar *a = 0;
  11. struct baz *b = 0;
  12. struct foo c = {0};
  13.  
  14. printf("bar -> %p\n", (void *)a);
  15. printf("baz -> %p\n", (void *)b);
  16. printf("foo -> %p, %zu\n", (void *)&c, sizeof c); /* Remove %zu if compiling with -ansi flag */
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 2008KB
stdin
Standard input is empty
stdout
bar -> (nil)
baz -> (nil)
foo -> 0xbfd81c24, 4