Mastery16


Mastery16

Mastery16

Use of “else” with a conditional
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://www.programiz.com/cpp-programming/if-else#if-else

CC BY 4.0 Mastery16 by ivanna lases is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.