| <<< Operator Associativity | Index | Assignment Operators >>> |
Decision making
(condition) ? expressiontrue : expressionfalse
For example,
int main()
{
int x = 5;
int y = 8;
int z = ( x > y ) ? x : y; // select max value
return 0;
}
| <<< Operator Associativity | Index | Assignment Operators >>> |