Hello friend today C for fun brings you decision selection of branching instructions and help you understand the difference between them and how to use them there are different type of instructions available in C syntax. Some Some are explain explain blow you may go Through, different statements are used for different type of decision making


A detailed note on the decision selection of branching statement has been posted below for the student to remove the confusion about the topic students sometime get confused where to use and when to use these statements.


Decision, selection or branching control instruction.

#the control instruction which helps to check some instruction, condition and take a decision about what to execute.
# there is four types of branch control instruction

1) If else
2) Switch statement
3) Condition operator
4)goto statement

*if else statement
If (test expression)
Different form of if
#simple if
#if else
#nested if
#if else ladder
if (test expression)
{
True block statement(s);
}
else
{false block statement(s);
}
Statement x;
#the statement if tells the compiler that what follows a decision control instruction.

#the zero value is false & non zero value is true.

You might think that these statements are one of the same kind but this is not the fact different use make them different entirely.
Like you cannot use a piece of needle in place of knife and vice versa so you need know 
The use of the statement in your program wherever necessary





Now when you have gone through the syntax and now you know the use of these statements you can make the efficient program by using different types of commands.

Share this blog among your friends to help them understand and grab the knowledge of different type of statements used in C Syntax C for fun brings you the detailed note in a very precise manner.

Help you friend out in using the decision making statement and comment down any question or query or feedback if you have there would be response in no time.


Comment below any question which arises in your mind related to topic if you have any problem in making any type of code with the statements then post the problem statement and then there would be response in no time thank tha
Keep learning
Keep coding
Keep updating yourself as C language keeps updating everyday....

No comments

thanks for reading and sharing.I hope it would help you!!!!

Powered by Blogger.