union u
{
int a;
float b;
char c[10];
};
int main()
{
union u abc;
printf("\n%d",sizeof(abc));
}
Output: 12 I expect the output to be 10.sizeof(char) is 1. So for 10 i expect it to be 10. Can someone explain me why do we get 12.