I look at it as shorthand...
C=(A>B)?A:B;
meaning:
If A > B Then C = A Else C = B
Pete
C=(A>B)?A:B;
meaning:
If A > B Then C = A Else C = B
Pete
Shoot first and shoot people who ask questions, later.
Using the tenary operator in C with 3 numbers
|
« Next Oldest | Next Newest »
|