📅  最后修改于: 2022-03-11 14:44:55.459000             🧑  作者: Mango
(expression 1) ? expression 2 : expression 3 ---->If expression 1 is
evaluates to true, then the expression 2 is evaluated else then the expression 3
is evaluated.
Example :
int s = (20 >= 2) ? 30 : 40;
cout << s ; //prints 30