The Decision Control Structure
Till now we have used sequence control structure in the programs,in which the various steps are executed sequentially i.e.in the same order in which they appear in the program.
In C programing the instructions are executed sequentially,by default.
At times,we need a set of instructions to be executed in one situation and an another set of instructions to be executed in another situation.
In such cases we have to use decision control instructions.This can be acheived in C using;
(a)The if statement
(b)The if-else statement
(c)The conditional operators
Till now we have used sequence control structure in the programs,in which the various steps are executed sequentially i.e.in the same order in which they appear in the program.
In C programing the instructions are executed sequentially,by default.
At times,we need a set of instructions to be executed in one situation and an another set of instructions to be executed in another situation.
In such cases we have to use decision control instructions.This can be acheived in C using;
(a)The if statement
(b)The if-else statement
(c)The conditional operators
Comments