For vs. while in C programming ?

Posted by shinchyn on Stack Overflow See other posts from Stack Overflow or by shinchyn
Published on 2010-06-01T15:11:42Z Indexed on 2010/06/01 15:33 UTC
Read the original article Hit count: 93

Filed under:
|
|
|

There are 3 loops in C: for, while, do-while. What's the difference between them? For example, it seems nearly all while statement can be replaced by for statement, right? Then, what's the advantage using while?

© Stack Overflow or respective owner

Related posts about c

    Related posts about beginner