CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

Ternary Operator Output

C quiz · Question 24
mediumConditionals

What does this program print?

Code

1#include <stdio.h>
2 
3int main() {
4 int x = 5;
5 printf("%d", x > 3 ? 1 : 0);
6 return 0;
7}