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
Fake News + Phony Politicians = Real Problems
Using the tenary operator in C with 3 numbers
|
« Next Oldest | Next Newest »
|