Next: The if statement Up: Programming in C Previous: Exercises

Conditionals

This Chapter deals with the various methods that C can control the flow of logic in a program. Apart from slight syntactic variation they are similar to other languages.

As we have seen following logical operations exist in C:

==, !=, ||, &&.

One other operator is the unitary - it takes only one argument - not !.

These operators are used in conjunction with the following statements.



drago@scri.fsu.edu
Jan. 1997