|
hi,
I want to know whether compiler implements bits padding in Classes as in structs??
eg:
if my struct is
struct info
{
char c;
int i;
};
Size of this structure would be 8 and not 5..(considering int is 4 bytes)
On similar grounds if my class is
class info
{
public:
char c;
int i;
};
Size of this class would be 8 always?
|