RE:
Give the output of the following program
struct XXX
{int a:6;
float b:4;
char s;
}structure;
size o...
size of structure is 12 byte this is because compiler use optimization so at 32 bit machine compiler use word size to represent data so in this case it allocate 4 byte for character so it size is 4+4+4 12 byte