Integer a, b, c Set c = 8 , b = 2 a = c / b c = b >> a Print c
(A)
3
(B)
1
(C)
0
(D)
4
Answer: (C)
Explanation:
Here the value in a will be 8/2 = 4
Then the value in c when you right shift 2 to 4 bits (2 >> 4), will be 0.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Article Tags :
Uncategorized
Recommended Articles