Q. What is the output of the following?
Code:
int a = 5;
printf("%d", a << 1);
β
Correct Answer: (B)
10
Explanation: Left shift by 1 multiplies the number by 2.