UrbanPro
true

Search for topics

Looping in C

Shailendra Kumar
12/06/2020 0 0

Looping in C

The process of repeatedly executing a block of statements is known as looping”.

In looping, a sequence of statements is executed until some conditions for termination of the loop are satisfied. Generally, a program loop consists of two segments: (i)control statement  (ii) Body of the loop.

(i) Control statement tests specified conditions and then directs the repeated execution of the statements contained in the body of the loop.

(ii) Body of the loop is a statement-block, which may consist of one statement or more statements.

The loop may be categories in the following two types depending on the position of the control statements:-

(ii)Exit-controlled Loop: In case of an exit-controlled loop, the control checks the test-condition after executing the body of the loop. Do-while() loop come under this.

(I) Entry controlled Loop: In case of an entry-controlled loop, the control checks the test-condition before entering into the body of the loop. While () and for() loop come under this category.

Now, we are going to discuss, types of loop statements provided by C Language. There are three types:

(a) While() Loop

(b) do-while() Loop

(c) For () Loop 

0 Dislike
Follow 2

Please Enter a comment

Submit

Other Lessons for You


Avoid using present continuous tense
Avoid using present continuous tense in the following contexts: Verbs of perception: See, hear, recognize, taste, smell etc. Verbs of emotion: Love, hate, wish, desire, hope, prefer, refuse, etc. ...

Sujata P. | 15/09/2020

0 0
0

An Overview of Cell
Cell biology is a branch of biology which deals with the study of cells. Cells are building blocks of living organisms and fundamental unit. Organisms are made up of different types of cells, and cells...

Priyanka P. | 02/09/2020

1 0
0

Basic English
The 5 special Sounds The 6 long Vowel Sounds The 7 Digraphs Sounds 1 oi oil,toy 1 a made, maid, day 1 ch chip,each, much,future 2 ow cow, pouch 2 e feet,...
D

Deepika A. | 07/08/2020

0 1
0

Relations and Functions: Class 12
Relation: A relation, R, from a non-empty set A to another non-empty set B, is mathematically defined as an arbitrary subset of the cartesian product of A and B. Domain, Range and Co-domain of the Relation...

Shikha | 04/08/2020

0 0
0

Looking for CBSE Schools ?

Find best CBSE Schools in your locality on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
Sponsored
X

Looking for CBSE Schools Classes?

Find best tutors for CBSE Schools Classes by posting a requirement.

  • Post a learning requirement
  • Get customized responses
  • Compare and select the best

Looking for CBSE Schools Classes?

Find best CBSE Schools Classes in your locality on UrbanPro

Post your learning requirement

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more