Next: Comma Operator, Previous: Logicals and Assignments, Up: Execution Control Expressions [Contents][Index]
C has a conditional expression that selects one of two expressions to compute and get the value from. It looks like this:
condition ? iftrue : iffalse
• Conditional Rules | Rules for the conditional operator. | |
• Conditional Branches | About the two branches in a conditional. |