fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. struct st {
  5. int i;
  6. struct st *j;
  7. }t1,t2;
  8.  
  9. t1.i=123;
  10. t2.i=456;
  11.  
  12. t1.j=&t2;
  13. t2.j=&t1;
  14.  
  15. printf("%d\n%d\n", t2.j->i, t1.j->i);
  16. }
Success #stdin #stdout 0.01s 2680KB
stdin
Standard input is empty
stdout
123
456