Login
Your Email
Pasword
Home
Write
Trending
History
Liked
Dashboard

Introduction to control statements - Branching and Looping in #C (module 18)

In this section we will discuss on the most important topic of C. The control statements and its many applications in writing a program using the concepts of loops and branching.

Do you have similar website/ Product?
Show in this page just for only $2 (for a month)
Create an Ad
0/60
0/180
This is the 18th module on learning C with us. Earlier we discussed on the basic introduction and structure of C, preprocessor it's features, intermediate and executable codes. compilation and execution process of a C program. And keywords and identifiers, data types, variables and constants, scope of variables, operators and expressions in C. Type casting in #C. Introduction to input and output functions and reading a character in #C. Unformatted and formatted input functions.
In this section we will discuss on the most important topic of C. The control statements and its many applications in writing a program using the concepts of loops and branching.
Control statements :- 
When we run a program, the statements are executed in the order in which they appear in th program. Also each statement is executed only once. But in many cases we may need a statement or a set of statements to be executed a fixed number of times or until a condition is satisfied. Also we may want skip some statements based on testing a condition.

For all these we use control statements. Control statements are of two types :
1. Branching.
2. Looping.
Branching :
It is to execute one of several possible options depending on the outcome of a logical test, which is carried at same particular point within a program.

Branching have many parts like :
* if statement.
* if-else statement.
* nested if-else statement.
* switch statement.

Looping :
It is to execute a group of instructions repeatedly a fixed number of times or untill a specific condition is satisfied or it is true.

Looping have many types like :
* while loops.
* do-while loops.
* for loops.
In next module we will continue our discussions on the most important topic that is types of control statements. For more information regarding #C please be updated with us only on Www.newsandstory.com as we provide all the information on all the topics covered in #C.
CONTINUE READING
Control statements
branching
looping
#C
module 18
Programming
coding
learning
technology
Dalpat I
Content writer