Size of structure

Struct {
int a : 8;
int b : 10;
int c : 12;
int d : 4;
int e : 3;
int : 0;
int f : 1;
char g;
} A;
what is the size of structure. size of bitfields with out character allocation is 48 bytes. so it is taking 4+4 =8 bytes. what about memory for character. Why memory for char is not allocated seperately. I am expecting size=4+4+1=9 bytes. When I compiled. it is giving 8 bytes. Can any one help me and clarify me.

  
 

This Question is not yet answered!

 
 

Related Answered Questions

 

Related Open Questions