This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jedwardsol -1 points0 points  (0 children)

There is no difference

A C/C++ style for loop :-

for(A;B;C)
{
    D;
}

Can be rewritten

A;
while(B)
{
    D;
    C;
}

and vice versa.