If you want to break a loop, use "break", not changing the loop variable - it can confuse the compiler, and is definitely harder to follow for humans.Code:if ( array[count] == 0 ) count = MAX; /* will exit for loop */
--
Mats
If you want to break a loop, use "break", not changing the loop variable - it can confuse the compiler, and is definitely harder to follow for humans.Code:if ( array[count] == 0 ) count = MAX; /* will exit for loop */
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.