Lyle Hazelwood wrote: > > > Line 8. Should be i++ not ++i > > > > This is a pre-increment rather than post-increment, so you start > > with 1 rather than 0. Not wrong. If you wanted to use i++ you'd > > have to start with i =3D 1. >=20 > If I understand correctly, that would only be the case if the ++i or > i++ was used in a compound statement. In this case there is no > difference between the two at all. A lot of us got into the habit of writing ++i "by default" (i.e., unless we really needed i++ in an expression), because many simple-minded small-syste= m C compilers generate more efficient code for ++i than for i++, even if the result isn't being used. -- Dave Tweed --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .