fork download
  1. #include <iostream>
  2. struct Demo
  3. {
  4. int abc[10];
  5. int reply_port;
  6. };
  7.  
  8. struct XYZ
  9. {
  10. struct Demo dem[10];
  11. int x;
  12. int y;
  13. struct Demo a;
  14. struct Demo b;
  15. struct Demo c;
  16. } arr[100];
  17.  
  18. int main(){
  19. XYZ xyz = {};
  20. std::cout<<xyz.a.abc[0]<<std::endl;
  21. }
Success #stdin #stdout 0s 3396KB
stdin
Standard input is empty
stdout
0