Control Instructions in C

As the name suggests the ‘Control Instructions’ enable us to specify the order in which the various instructions in a program are to be executed by the computer. In other words the control instructions determine the ‘flow of control’ in a program. There are four types of control instructions in C. They are:

  • Sequence Control Instruction
  • Selection or Decision Control Instruction
  • Repetition or Loop Control Instruction
  • Case Control Instruction

The Sequence control instruction ensures that the instructions are executed in the same order in which they appear in the program. Decision and Case control instructions allow the computer to take a decision as to which instruction is to be executed next. The Loop control instruction helps computer to execute a group of statements repeatedly.

Introduction to Decision Control Structure in C

 

The loop Control Structure in C

 

 

The For loop in C

Nesting of Loops in C

 

The Odd Loop in C

 

[xyz-ihs snippet=”Discuss”]

Satya Prakash

VOIP Expert: More than 8 years of experience in Asterisk Development and Call Center operation Management. Unique Combination of Skill Set as IT, Analytics and operation management.

Leave a Reply