Mastery16
Use of “else” with a conditional #TC1017 #Mastery16
The nested if…else statement has more than one test expression. If the first test expression is true, it executes the code inside the braces{ } just below it. But if the first test expression is false, it checks the second test expression. If the second test expression is true, if executes the code inside the braces{ } just below it. This process continues. If all the test expression are false, code/s inside else is executed and the control of program jumps below the nested if…else
Conditional/Ternary Operator ?:
Conditional operators are the peculiar case of if…else statement in C++ Programming.
link: http:/