fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. union _unionA {
  6. int a[5];
  7. char b;
  8. double c;
  9. }AA;
  10.  
  11. struct B {
  12. int n;
  13. //_unionA a;
  14. char c[10];
  15. }BB;
  16. printf("Size of A = %d", sizeof(BB));
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 5504KB
stdin
Standard input is empty
stdout
Size of A = 16