#include <stdio.h> int main(void) { // your code goes here union _unionA { int a[5]; char b; double c; }AA; struct B { int n; //_unionA a; char c[10]; }BB; printf("Size of A = %d", sizeof(BB)); return 0; }
Standard input is empty
Size of A = 16
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!