Clouds
Home
Tutorial of C language
Computer Language
Introduction to C
Programming in C
Structure of C program
Variable in C
Datatypes in C
Token in C
Operator in C
Precedence of C Operator
Assignment Operator in C
Logical Operator in C
Bitwise Operator in C
Ternary Operator in C
C Input Output
Pointers in C
Storage Classes of C
Control Structure of C
C Decision Making Statement
C Looping Statement
C Jumping Statement
C Function
Function Call By Value
Function Call By Reference
C Input Output Function
C Structure
Array in C
Union in C

Control Structures

A computer program is a set of instructions for a computer. These instructions, also known as statements are executed sequentially. i.e. one after the other as they appear in a program. This order of executing the statements works well for simple problems where no decision making process is involved. However in practice, it is often required to change the order of execution of statements or repeat a group of statements for known number of times or until certain specified conditions are met. In such cases, the order in which these statements will be executed is to be controlled.
  • he control structures defines the way or flow in which the execution of C language statements should take place to achieve the required result.
  • Different control structures are supported by C. They are defined as:

    Decision Making Statements

  • if statement
  • if..else statement
  • else..if statement
  • switch statement

    Looping statements

  • for statement
  • while statement
  • do..while statement

    Jumping statement

  • break statement
  • continue statement
  • goto statement
    C Decision Making Statement >>
    C Looping Statement >>
    C Jumping Statement >>
    C Function >>
    Function Call By Value >>


    Home Clouds