Tmin = 100...000 and Tmax = 011...111.
Umin = 000…000 = 0 and Umax = 111...111.
bit pattern of 1 = 000...001.
In all above cases, each number is represented using 32 bits.
- 1 < < 31 = 100...000 = Tmin, since we shifted bits left by 31 bits.
- 1 > > 31 = 000...000 = 0, since we shifted bits right by 31 bits.
- ~ (1 > > 31)= ~ (000...000) = 111...111 = Umax ≠ Tmax, since we toggled each bit.
- ! (1 > > 31) = ! (0) = ! (False) = True = 1.
Option A : True from point a.
Option B : False from point c.
Option C : False from point d.
Option D : True from point c.
Answer – A, D