C Programming MCQ

1:

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); 

information about d will be in the
A.

first word

B.

second word

C.

in both words

D.

none of the above

 

Answer : B

Explanation :

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.