Decision making is a concept by which we can take a decision on the basis of the condition.
In c Language, Decision making is:
1. if statement:
Syntax-
if(condition)
{
}
2. if else statement;
Syntax-
if(condition)
{
}
else{
}
3. Nested if statement
Syntax-
if(condition1)
{
if(condition2)
{
}
}
4. Switch case statement.
Syntax-
Switch(variable)
{
case value:
body
}
5. Nested switch statement.
Syntax-
switch()
{
case value:
switch()
{
}
}
6. Conditional Expression(?:)
Syntax-
condition?true:false