Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using the tenary operator in C with 3 numbers
#2
For those of you who missed out watching reruns of Hogan's Heroes, the tenary operator is basically saying...

if a then b otherwise c 

Which looks to me like the BASIC equivalent of our if/then/else statements.

But then again, I could be channeling Sergent Schultz, in which case, "I know nothing, nothing!"

Pete Big Grin
Shoot first and shoot people who ask questions, later.
Reply


Messages In This Thread
RE: Using the tenary operator in C with 3 numbers - by Pete - 08-08-2024, 03:51 PM



Users browsing this thread: 2 Guest(s)