88026 18-JUN 05:17 Programmers Den
RE: C programming again (Re: Msg 87911)
From: ALWAGNER To: COLORSYSTEMS
Please, bear with me as now I am confused on something I thought I understood!
I thought if you used the preincrementation the equivelent would be:
Where as if post incrementation were used:
In both cases, the exp3 is executed BEFORE the conditional is evaluated the
SECOND time, but where it is evaluated in relation to statement is what is
important here. If I am wrong, then why is the guy’s original program crashing?
The actual numbers he used to index his array were ok, but I maintain that
because he used preincrementation, the index actually went one past the
conditional on the last pass.