In a certain machine, the sum of an integer and its 1's complement is 226 - 1. Then sizeof intl. in bits, will be
A. | 16 |
B. | 32 |
C. | unpredictable |
D. | none of above |
Answer : D Explanation : The sum (or bit-wise OR) of a number and its complement will be all 1's. How many 1's depends on how many bits are needed to represent the number. lithe sum is 220 - 1. then the sizeof(int) in bits must be 20. |
|
Option: A Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. |