Decision making in C by R4R Team

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




Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!