Decision making in C

Decision making is about deciding the order of execution of statements based on certain conditions or repeat a group of statements until certain specified conditions are met. C language handles decision-making by supporting the following statements,

  • if statement
  • switch statement
  • conditional operator statement
  • goto statement

Decision making with if statement

The if statement may be implemented in different forms depending on the complexity of conditions to be tested. The different forms are,

  1. if statement
  2. if else statement
  3. Nested if else statement
  4. if else if Ladder statement

Subscribe us on Youtube

Share This Page on

Ask Question