Zebra0.com

cpp conditionalConditional operator: ?

Conditional operator: ?

This example reads in two numbers and finds the smallest and largest. Notice that there are two assignments for each condition. There are separated by a comma.