ternary operator geeks for geeks code example
Example: c++ ternary statement
x = condition ? expression1 : expression2
// Example:
double x = 1 > 0 ? 10 : 20; // put any value
x = condition ? expression1 : expression2
// Example:
double x = 1 > 0 ? 10 : 20; // put any value