🎙 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 4 of 10

What does printf("%d", 5 3); print?

What does printf("%d", 5 > 3); print?

  1. A.true
  2. B.1
  3. C.5
  4. D.0
Answer & explanation

Correct answer: 1

Relational operators give 1 for true and 0 for false.

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 →