On applying Left shift operator, <<, on integer bits are lost one they are shifted past which position bit?

On applying Left shift operator, <<, on integer bits are lost one they are shifted past which position bit?
A. 1
B. 32
C. 33
D. 31
 
Answer: d
Explanation: The left shift operator shifts all of the bits in a value to the left specified number of times. For each shift left, the high order bit is shifted out and lost, zero is brought in from the right. When a left shift is applied to an integer operand, bits are lost once they are shifted past the bit position 31.
 

Tìm kiếm

Back
Top