Charles D. Ward wrote:2. You're using pre increment and pre decrement operators in the loops.
That makes absolutely no difference at all.
@daniel: This is simply a style point. It's more usual to see post-increments in sample code, but it will have no effect on the way your loop works. Personally, I tend to use pre-increments for most things, since the value of the expression is what the variable will contain until it's next updated, which can be less confusing when you're debugging; but it's simply my preference.
Winston