🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.You can take the address of a bit-field with &
  2. B.A bit-field always uses exactly one byte
  3. C.A bit-field member uses only the number of bits you declare, but the overall layout depends on the compiler
  4. 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 →