Can bitfields be used in union?
Yes, they can be. Why not? Bit-fields in unions behave in the same way they behave anywhere else. There's nothing special about bit-fields in unions (or unions with bit-fields).
2.1m questions
2.1m answers
60 comments
57.0k users