Integer a, b, c
Set c = 12, b = 4
a = c / b
c = b >> a
Print c
(A)
2
(B)
0
(C)
6
(D)
4
Answer: (B)
Explanation:
Initial value of c = 12 and b = 4
Then a = c/b = 12/4 = 3
Now c = b(4) right shift by a(3) = 0
Quiz of this Question
Please comment below if you find anything wrong in the above post
Article Tags :
Uncategorized
Recommended Articles