take this case

struct demo
{
   char       c;
   double      d;
   int         s;

> }


what wud be the size??


solution is 24 according to following:-->

char (1) + 7 byte padding +double(8)+int(4)+ 4 byte padding


suppose address starts at 4..

i just wanna ask .. why there is 7 byte padding.. because just after 3 bytes
padding after char we are getting address that is multiple of 8(size of
largest)..

can u please tell me??

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to