C Programming MCQ

1:

 a << 1 is equivalent to

A.

multiplying a by 2

B.

dividing a by 2

C.

adding 2 to a

D.

none of the above

 

Answer : A

Explanation :

The left shift operator <<, pushes out the most significant (left-most) bit. If it happens to be a 1 , a << 1, will not be same as multiplying a by 2

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.