🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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;
}
  1. A.4
  2. B.5
  3. C.16
  4. 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 →