Hi All,
I have following confusion:
1. When the structure is padded?
Eg
Size of the above struct is oneCode:struct A { char c; }; struct A c; sizeof(c);
But
Size of the following is 12Code:struct B { int a char c; }; struct B c; sizeof(c);
How come first structure is not getting padded?
Thanks in advance