CP SU Q14

0. Assuming that bit-fields are accommodated from right to left and word size is 16-bits
Consider the declaration
static struct {
  unsigned a : 5;
  unsigned b : 5;
  unsigned c : 5;
  unsigned d : 5; } v = (1, 2, 3, 4);
If the declaration unsigned c : 5; is replaced by unsigned : 6;
then,

  • Option : D
  • Explanation :
    A bit-fiels need not be named
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *