Subj : Re: puzzle To : borland.public.cpp.borlandcpp From : waking Date : Fri Jul 16 2004 09:42 am On Fri, 16 Jul 2004 09:35:09 +0100, nokomis wrote: >printf( "%d", ++i + i++ * ++i); Read the C FAQ at http://www.eskimo.com/~scs/C-faq/faq.html especially "Section 3. Expressions" e.g. - http://www.eskimo.com/~scs/C-faq/q3.1.html =============================================== 3.1: Why doesn't this code: a[i] = i++; work? =============================================== http://www.eskimo.com/~scs/C-faq/q3.2.html =============================================== 3.2: Under my compiler, the code int i = 7; printf("%d\n", i++ * i++); prints 49. Regardless of the order of evaluation, shouldn't it print 56? =============================================== -- Wayne A. King (waking@idirect.com, Wayne_A_King@compuserve.com) .