ExamVeda
Login
Home
This question belongs to C Program Structure And Union
Structure and Union
?

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;

Answer & Solution
Correct Answer: Option D
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.