C Programming on the Mac L39 - Conditional Operator

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
913 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 19, 2011

How to use the conditional operator / "ternary" operator in C. (?:)

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (4)

Sign In or Sign Up now to post a comment!
  • @pyrophobia133 Not often, but you'll know now when you see it. I've found it useful to impose in situations where you want to make a yes or no decision within a parameter. It saves you from doing an if statement or something before hand.

  • how often is the ternary operator used anyway?

  • @zareasd I'm glad these are helpful, thanks for promoting me to your friends as well :D

  • I have to say that i like the way you explain stuff. Anyway you top my university teacher's skill at making these seem simple enough. I am going to tell my classmates about your channel. :)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more