What is control statement ? Types of control statement
Control Statement :- In c programs,statements are executed sequentially in the order in which they appear in the programs. But sometime we may want to execute some only a part or program or want to execute some statement the flow of program control statement enable us to specify the flow of program control; i.e. the order in which the instruction in a program must be executed. They make it possible to make decision,to perform tasks respectably or to jump from one section of code to another.
Types of Control Statement :-
There are four types of control statements in C.
1. Decision Making Statements :-
a. Simple if
b. if ..... else
c. nested if
d. else ..... if ladder
2. Selection Statements :-
a. Switch case
3. Iteration Statements :-
a. for
b. while
c. do ....... while
4. Jump Statements :-
a. goto
Types of Control Statement :-
There are four types of control statements in C.
1. Decision Making Statements :-
a. Simple if
b. if ..... else
c. nested if
d. else ..... if ladder
2. Selection Statements :-
a. Switch case
3. Iteration Statements :-
a. for
b. while
c. do ....... while
4. Jump Statements :-
a. goto
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment