What is control statement ? Types of control statement

No comments
Control Statement :-  In c programs,statements are executed sequentially in the order in which they appear in the programs. But sometime we may want to execute some only a part or program or want to execute some statement the flow of program control statement enable us to specify the flow of program control; i.e. the order in which the instruction in a program must be executed. They make it possible to make decision,to perform tasks respectably or to jump from one section of code to another.

Types of Control Statement :- 

There are four types of control statements in C.

1. Decision Making Statements :-
      
       a.  Simple if
       b.  if ..... else
       c.  nested if
       d.  else ..... if ladder

2. Selection Statements :-

           a. Switch case

3. Iteration Statements :-

        a. for
        b. while
        c. do ....... while

4. Jump Statements :-

    a. goto

No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀