: A class declared as
struct {
char a;
int b:5,
c:11,
:0,
d:8;
struct {int ee:8;} e;
}
contains four separate memory locations: The member
a and bit-fields
d and
e.ee are each separate memory locations, and can be
modified concurrently without interfering with each other
. The bit-fields
b and
c together constitute the fourth memory location
. The
bit-fields
b and
c cannot be concurrently modified, but
b and
a, for example, can be
. —
end example