CONTROL FLOW STATEMENTS IN C ++ PROGRAMMING

C ++ programming in the control flow statements

CONTROL FLOW STATEMENTS IN C ++ PROGRAMMING


A program is a group of structures. Row Wise is written in the Structure program, but at the time of execution, their execution doesn't need to be from top to bottom. The computer does not have the ability to make decisions on its own, gets it done as per the instructions of the programmer to make decisions.


The Execution section of the Structure in the computer and the statements that are used for decision are called Control Statements.


There are three types of it -


  1. Sequential Structure
  2. Branching or Conditional Structure
  3. Iterative or looping structure

Sequential Control Flow Structure


The statements written in the program are implemented one after the other. The statements are executed in the order in which the compiler receives them. This execution of the program is called serial execution.


Branching or Conditional Structure


Branching or selection: - In the normal state, execution of the program is gradual execution. When the Sequential Execution of the program is made to block the selected Statements, it is called Branches Execution. Control of the program requires a condition to block the selected statements. That is, the control of the program is done by blocking the selected statements based on a condition, then the statement used in it is called a Conditional Statement.


C ++ consists of three Conditional Statements: -


1. Single Design Statement


  1. if
  2. if —————— else  statements

2. Switch Statements

3. Multi Design Statements


Iterative or looping structure


The Looping or Reversible Statement Program sometimes requires the same statement to be used repeatedly, for this C ++ has three methods. Using which we can execute statements repeatedly which are the following are also called Looping Statements.


  1. While Loop
  2. do ————- while loop
  3. for ————– loop

AKASH TIMES

I AM AN ENGINEER BY PROFESSION BUT BLOGGER IS MY OLD DAYS DREAM TO CREATE MY OWN SITE FOR THOSE WHO ARE CURIOUS ABOUT MY BIRTHPLACE THEN I AM COMING FROM (INDIA). THE CURRENT CITY LIVES IN NAVI MUMBAI, INDIA

Post a Comment

IF YOU HAVE ANY PROBLEM PLEASE FELL FREE TO CONTACT US BY - AKASH TIMES

PREVIOUS POST NEXT POST