struct st
{
char a[10];
union
{
int i;
double y;
};
};
char a[10];
int i;
double y;
struct st1
{
};
cout<<"st "<<sizeof(st)<<endl;
cout<<"a "<<sizeof(a)<<endl;
cout<<"i "<<sizeof(i)<<endl;
cout<<"y "<<sizeof(y)<<endl;
cout<<"st1 "<<sizeof(st1)<<endl;