πŸ“Š C Programming
Q. What is the output of the following?
Code:
int a = 5;
printf("%d", a << 1);
  • (A) 5
  • (B) 10
  • (C) 2
  • (D) 15
πŸ’¬ Discuss
βœ… Correct Answer: (B) 10

Explanation: Left shift by 1 multiplies the number by 2.

Explanation by: Mr. Dubey
Left shift by 1 multiplies the number by 2.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
68
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate