Re: i++ * i++
On 16 Mar 2006 07:49:12 -0800, in comp.lang.c , "rohit"
<rohit1712@gmai l.com> wrote:
[color=blue]
>#define PRODUCT(x) (x*x)
> j = PRODUCT(i++);
>The output is 9 and 49
>shouldn't the answer be 12 and 20?[/color]
this is a FAQ
Mark McIntyre
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
On 16 Mar 2006 07:49:12 -0800, in comp.lang.c , "rohit"
<rohit1712@gmai l.com> wrote:
[color=blue]
>#define PRODUCT(x) (x*x)
> j = PRODUCT(i++);
>The output is 9 and 49
>shouldn't the answer be 12 and 20?[/color]
this is a FAQ
Mark McIntyre
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Comment