K
kuangye
According to C++0x, a memory location is either an object of scalar
type, or a maximal sequence of adjacent bit-fields all having non-zero
width.
Then, I have a question about this:
struct A{
int b:5, c:11, d:16;
};
How many memory locations are there in struct A.
One or Two? And why ?
type, or a maximal sequence of adjacent bit-fields all having non-zero
width.
Then, I have a question about this:
struct A{
int b:5, c:11, d:16;
};
How many memory locations are there in struct A.
One or Two? And why ?