occupies one bit, but the structure will have padding for memory alignment, so just one bit field does not actually save memory. . Being more compact will save memory. For example, connecting several flag variables of this type will definitely save memory than bool
occupies one
bit
, but the structure will havepadding
for memory alignment, so just one bit field does not actually save memory. .Being more compact will save memory. For example, connecting several flag variables of this type will definitely save memory than
bool