Question: C++ has a conditional operator, ?: (question mark together with is used in a conditional expression as follows: Boolean_expression ? expression1: expression2 For example: x
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: 3*f(45) If x > y + 5 is true, the value of the conditional expression is 125 otherwise the value is 3*f(45) Consider the following program: #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
