Can someone explain to me how this if-statement works? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can someone explain to me how this if-statement works?

int a =1?0:2?3:4; printf ("%d",a); the output is 0

17th May 2019, 10:53 AM
MrNick7373
1 Answer
17th May 2019, 11:42 AM
Gordon
Gordon - avatar