Showing posts with label conditional operator in cpp. Show all posts
Showing posts with label conditional operator in cpp. Show all posts

The Conditional Operator

The Conditional Operator

The conditional operator is used as an alternative of a simple if-else statement.
The conditional operator consists of "?" (question mark) and a ":" (colon) . Its syntax is 
Creative Commons License
Pakistan How by Tahira Aijaz is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.