Karsten may have a point, though I don't have a copy of K&R to check.

++i means "increment _i_ before evaluating any larger expression",
whereas i++ means "evaluate the larger expression, and _then_
increment i".

For example,

  i=1;
  5*++i evaluates to 10, but

  i=1;
  5*i++ evaluates to 5.

(after both statements, i=2).

-- 
Clear skies,
Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to