fork download
  1. #include <stdio.h>
  2.  
  3. struct a
  4. {
  5. int z;
  6. };
  7.  
  8. struct b
  9. {
  10. int x;
  11. struct a c;
  12. };
  13.  
  14. int main()
  15. {
  16. struct a elementA;
  17. struct b elementB;
  18. elementA.z=666;
  19. elementB.x=3;
  20. elementB.c=elementA;
  21. printf("%i",elementB.c.z);
  22. return 0;
  23. }
Success #stdin #stdout 0s 1788KB
stdin
Standard input is empty
stdout
666