Conditional Operators
Conditional Operators
:)
Conditional operators are used in decision making in C programming, i.e, executes different statements according
to test condition whether it is either true or false.
If the test condition is true, expression1 is returned and if false expression2 is returned.
Output
Enter l if the year is leap year otherwise enter n: l
Number of days in February = 29
Other operators such as &(reference operator), *(dereference operator) and ->(member selection) operator will be
discussed in pointer chapter.