Saturday, May 10, 2008

CONTROL STRUCTURE(Sequence control statements )

CONTROL STRUCTURE

Sequence control statements

This type of statements insured that the instruction in a
program is executed in the same order. In which they appear
in the program.

An example of sequential Control Statements:



output




Explanation of the program:

There are three variable a, b, c is declared as int datatype
the value of a=2, b=3 and the result of the sum is
stored in the c variable which is 5.

0 comments:

Copyright

Copyright © 2008 C Tutorial, All rights are reserved