← 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?
- A.true
- B.1
- C.5
- 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 →