Decision making and Branching in c programming

Decision Making and Branching in c programming

There are many situations where we need to change the execution order of statements as per some specific conditions. This involve some decision making to check whether a particular condition has occurred or not and than after execute certain statements as per conditions.

C programming provide such decision making capabilities by following statements.
  1. If statements.
  2. switch statement
  3. Conditional operator statement
  4. goto statement
These statements are popularly known as decision - making statement. These statements also control the execution of program so it also called control statements.

0 comments:

Post a Comment