Loop in C Part II

In the first part of tutorial we have studied about while and do-while loop. In this tutorial we are going to study ‘for loop’, a very important loop in C, and off course very handy one. In for loop number of repetitions needed for the loop is known before the loop begins; these loops have control

Read more

Looping in c

In every programming language, thus also in the C programming language, there are circumstances were you want to do the same thing many times. For instance you want to print the same words ten times. You could type ten printf function, but it is easier to use a loop. The only thing you have to do is to setup a loop that execute the same printf function ten times.

There are three basic types of loops which are:

Read more