Control Statement in 'C'
A computer program in usually executed in the same order in which the statement appear in the program but in some programs it is necessary to conduct a logical test and then the order of execution should be decided. This is called as conditional execution and it is done with the helps of control statement.
We have the following control statement.
1) if...........................else,
2) switch.........................case,
3) while,
4) do...................while,
5) for,
We have the following control statement.
1) if...........................else,
2) switch.........................case,
3) while,
4) do...................while,
5) for,
0 comments:
Post a Comment