fork download
  1. #include <stdio.h>
  2.  
  3. typedef union {
  4. struct {
  5. unsigned A;
  6. unsigned B;
  7. };
  8. struct {
  9. unsigned C;
  10. unsigned D;
  11. };
  12. } HogeA_t;
  13. typedef union {
  14. struct {
  15. unsigned X;
  16. unsigned Y;
  17. }hogea;
  18. struct {
  19. unsigned Z;
  20.  
  21. }hogeb;
  22. } HogeX_t;
  23.  
  24.  
  25.  
  26. int main(void) {
  27. // your code goes here
  28. HogeA_t hogea;
  29. HogeX_t hogex;
  30.  
  31. hogea.A=1;
  32. hogex.hogeb.Z=1;
  33.  
  34.  
  35. return 0;
  36. }
  37.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
Standard output is empty