📅  最后修改于: 2022-03-11 14:52:25.603000             🧑  作者: Mango
//ternary operator
// takes in a conditional statement
// a is returned when the condition is true and vice versa
return (a == b) ? a : b;
int n = (a < b) ? a + 10: b;