Answers for "how to do ternary operator in c++"

C++
0

c++ ternary statement

x = condition ? expression1 : expression2

// Example:
double x = 1 > 0 ? 10 : 20; // put any value
Posted by: Guest on December-09-2020

Browse Popular Code Answers by Language