CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Ternary Picks the Smaller Value

C code walkthrough · Question 13
easyOperators

Code

Read carefully. What does this print?
1#include <stdio.h>
2int main() {
3 int a = 8, b = 5;
4 int min = (a < b) ? a : b;
5 printf("%d\n", min);
6 return 0;
7}

Your answer