> why are they useless? why equal to 0? can i have more explanation?
Let's take this bit of code:
int loopb3()
{
for (n = 9; n >= 1; n--)
b3 = n;
return b3;
}
The function loopb3 has a "for..." loop which moves the value of b3 from
9 down to 0. It does nothing else. The function loopb3 will _always_
return 0, which is the final value of b3 after the loop is complete.
--
Bruce Fletcher
Stronsay, Orkney
<www.stronsay.co.uk/claremont>
|