C is a structured programming language. One of the reasons for this is having various program control statements. C process the decision making capabilities and supports the statements known as control statements.
C supports three types of control statements. They are :
1. Conditional Control statements.
2. Unconditional Control statements.
3. Loop Control statements.
1. Conditional Control statements:
C Supports five types of conditional control statements.
They are
1) simple if statement
2) if-else statement
3) Nested if statement
4) else-if statement
5) switch statement
2. Unconditional Control statements:
C supports three types of unconditional control statements
They are
1) break
2) continue
3) goto
3. Loop control statements:
Loop:
The process of repeatedly executing a block of statements up to specified number of times is called as loop.
C supports three types of looping statements.
They are :
1) while loop
2) do-while loop
3) for loop
Next Topic : Conditional Control statements
Previous Topic : Swapping of given two variables without using temporary variable
No comments:
Post a Comment