conditional operator syntax in CPP using Dev C++

preview_player
Показать описание
Conditional operator is an alternative of if else statement. Today we will discuss syntax of conditional operator using Dev-C++. Conditional operator is also called ternary operator. In conditional operator the following two operators are used.
1. ? (Written after condition)
2. : (Written after True case)
Result of conditional operator can also be used in assignment statement.

Source code of conditional operator is available here:
Рекомендации по теме
welcome to shbcf.ru