Vidyalelo
C Programming · Q165

Structure and Union

Programming · C Programming · question 165

Q165

Calculate the % of memory saved when bit-fields are used for the following C structure as compared to with-out use of bit-fields for the same structure? (Assuming size of int = 4) struct temp int a : 1; int b : 2; int c : 4; int d : 4; s;

A.
25%
B.
33.3%
C.
50%
D.
75%
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board