← Quiz: C Data Types and Operators: all 10 questions
Quiz: C Data Types and Operators · Question 5 of 10
What does this print? (code)
What does this print?
#include <stdio.h>
int main(void) {
printf("%d", 1 << 4);
return 0;
}
- A.4
- B.5
- C.16
- D.8
Answer & explanation
Correct answer: 16
Shifting left by 4 multiplies by 2⁴ = 16.
Can you get the rest right without peeking?
Take the timed Quiz: C Data Types and Operators quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →