impakt
Member level 4
Hello all,
suppose we have this union:
If the compiler allocates 8 bytes for this union, what happens when we want to compare 2 members of this union (meaning mu.d and mu.i)??
suppose we have this union:
Code:
Union myunion
{
int i;
double d;
char c;
}mu
sizeof(myunion)->8
sizeof(mu.i)->2
sizeof(mu.d)->1
sizeof(mu.c)->8