In C++, Decision making is work as similar as in C language.
How many decision making statement are in C and C++ language?
-If else
-Switch case
-(?:)
Syntax of if else:
if(condition)
{
body
}
else
{
}
Syntax of Switch case:
switch(variable)
{
case value1:
body;
case value2:
body;
.
.
.
default:
body;
}