I'm working on C++: Following is the code snippet:
class my
{
union o
{
int i;
unsigned int j;
};
union f
{
int a;
unsigned int b;
};
};
I found the size of class "my" is 1 byte. I don't understood why the value is 1 byte? Can any one explain me this result?