Hi Mauricio,
3) Why : while (cnt--) { anything..... }compiles using two comparisions of cnt ?while (cnt) { cnt--; anything... }
Both of these wont pass a lint test as while takes a boolean and cnt is some time of integer (I assume)
something like while (cnt != 0) would be better, then the while (cnt--) case would show what is happening more, eg while ((cnt--) != 0)
Regards, -- Peter Jansen STS Australian Antarctic Division