MCQOPTIONS
Saved Bookmarks
| 1. |
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 test { int p : 1; int q : 2; int r : 4; int s : 4; }stu; |
| A. | 75% |
| B. | 50% |
| C. | 33.3% |
| D. | 25% |
| E. | None of these |
| Answer» B. 50% | |