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 »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Serial Numbers | AtomicSlaughter | 1 | 764 |
03-13-2023, 05:45 PM Last Post: mnrvovrfc |
|