fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int i=1;
  6. struct foo {
  7. int *value;
  8. } *p = &(struct foo){{&i}};
  9. ++*p->value;
  10. printf("%d\n", i);
  11. }
Success #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
2