← Quiz: Bitwise Operators in C: all 15 questions
Quiz: Bitwise Operators in C · Question 10 of 15
Which statement about bit-fields is true?
Which statement about bit-fields is true?
- A.You can take the address of a bit-field with &
- B.A bit-field always uses exactly one byte
- C.A bit-field member uses only the number of bits you declare, but the overall layout depends on the compiler
- D.Bit-fields can be arrays
Answer & explanation
Correct answer: A bit-field member uses only the number of bits you declare, but the overall layout depends on the compiler
unsigned day : 5; uses 5 bits. Taking the address and arrays of bit-fields are not allowed.
Can you get the rest right without peeking?
Take the timed Quiz: Bitwise Operators in C quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →