Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
it is the operator whose syntax is (condition) ? (IfTrue) : (ifFalse) so if you write int x = (5>3) ? 8 : 10 means that if 5>3 is true, x will be 8, otherwise x will be 10 it is an if/else in one line
28th Jul 2017, 4:59 PM
Matte
Matte - avatar