Assuming that bit-fields are accomodated 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);
A. | first word |
B. | second word |
C. | in both words |
D. | none of the above |
Answer : B Explanation : |
|
Option: A Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. |