By 25/02/2014 34 Comments

Introducing Looping and Loops in C++

Looping is the process of executing a particular portion of program multiple times with out writing that code multiple number of times. Suppose if you have to print your name infinite number of times then you can not write the output statement infinite number of time. To overcome this major hurdle loops are introduced in almost all the programming languages. Loops are techniques, predefined in any programming language which are used to execute the particular block of code multiple number of times. The major advantage of using loops is that you don’t have to write the code multiple number of times which can save your much time, another advantage is that using loops can reduce the size of the program dramatically. The loops are constructed in such a way that when ever the control reaches the end of the loop then the loop transfers the control to the top of the loop and this process of transferring control from bottom to top and top to bottom continues until a certain condition of the loop becomes false. Following picture, shows the operation of the loop. In C++ there are three types of loops:

1  The for loop

2  The while loop

3  The do while loops



Operation of the loop


Posted in: C++ Basics

Leave your valuable Comment

Have a natural attraction for women cosmetics and replica watches uk clothes, no
more than two for men the most attractive one, is to make their own driving experience, happy and can serve as the facade of the car, another is to highlight the taste edify sentiment rolex replica watch. The replica rolex is undoubtedly the most fashionable accessories, wear a suit to attend the activities, but also get a decent match on the replica watches .