C++ has a “conditional operator”
C++ has a “conditional operator”, ?: (question mark together with is used in a conditional expression as follows: Boolean_expression ? expression1: expression2 For example: x > y + 5 ? 125: 3f(45) If x > y + 5 is true, the value of the conditional expression is 125 otherwise the value is 3f(45) Consider the […]
C++ has a “conditional operator” Read More »