Bit fields in a structure are of limited portability because the standard leaves
Answer: A
Whether the first declared field occupies the low or the high bits, and how fields straddle a unit boundary, are implementation defined, so the same declaration maps differently on two compilers. Masks and shifts on an explicit unsigned type are portable where bit fields are not.
Please log in or register to report this question.