Thread: small but odd!
View Single Post
Old 11-30-2005, 07:19 PM   #7 (permalink)
mgoldb2
 
Super Techie

Join Date: Jun 2005

Posts: 274

mgoldb2

Default

Quote:
Originally posted by csamuels
hmmm,

int j=1,q; // j=1 q=null

q=j++ + ++j + j++; // translates to q= 2 + 2 + 2 (2 cus of pre inc) and j now == 2
This is wrong it translates too 1+2+3
mgoldb2 is offline