On Wed, 28 Apr 1999, Glynn Clements wrote:

# > In gcc,
# > 
# > if i = 2;
# > then j = i++ + ++i;
# > 
# >     what is the value of j.
# 
#       i++ == 2
#       ++i == 3
# =>    j   == 5

no. it's not. I typed this in:

main() { int i = 2; printf ("%d", i++ + ++i);}
and when i ran it i got 6 printed...

-- 
+++      The program isn't debugged until the last user is dead.     +++
[EMAIL PROTECTED]         http://www.penguinpowered.com/~a_out

Reply via email to