C++ Programming - Class Member Alignment

class A {
bool a;
int b;
bool c;
};


class B {
bool a;
bool c;
int b;
};

What will be the value of sizeof(A) and sizeof(B)?

Labels:


About this entry