Hi ,

I suggest you to take a good book like "The C Programming Language by
Kernighan annd Ritche ".
Coming to the difference between the looping constructs you've mentioned:

for and while are almost same the syntax is different.
You can do everthing with *while* which can be done using *for.*
**
In the case of "*do while*" you can use it in situations where you want to
do some operation at least once and the next operation will be continued
based on the condition which you'll check in the while part of it.

You can toil your hands with simple programs presented in the book i've
mentioned or any other book of your interest and welcome to post if you have
any more doubts.

-nag.
On Mon, Oct 6, 2008 at 10:55 PM, nivasu88 <[EMAIL PROTECTED]> wrote:

>   --- In [email protected] <c-prog%40yahoogroups.com>, priyanka patel
> <[EMAIL PROTECTED]>
> wrote:
> >
> > Hi................
> > i am new in these group, i just started reading of C.
> > ANSI C Book
> > i started reading after many years.so feel very difficult.
> > i want to know wot is the difference between for loop,while loop nd
> do......while loop
> >
> >
> > Thankx in Advance
> >
> >
> > Add more friends to your messenger and enjoy! Go to
> http://messenger.yahoo.com/invite/
> >
> > [Non-text portions of this message have been removed]
> > we use for loop when we know the number of times the loop should
> execute, do while is used when the loop has to be executed atleast once
> without checking the condition.. while and for can be used for the same
> condition
>
> 
>



-- 
Cheers,
-nag.


[Non-text portions of this message have been removed]

Reply via email to