Heroic failures (q = q++)

K. Khan tmkk at uiuc.edu
Sat Jun 29 07:31:52 AEST 1991


In article <15952 at exodus.Eng.Sun.COM> rmp at crashnburn.Eng.Sun.COM (Richard Pottorff) writes:
>
>I tried this two ways on my Turbo Pascal Compiler at home.
>			     ^^^^^^^^^^^^^^^^^^^^^
>
>int q=0;
>printf("\nq=q++=%d", q=q++);
>
>q=q++=0;
>
>and:
> q=q++;
>
> printf("\nq=%d", q);
>
> q=1

You did? And it compiled?!?!?!?!?!?!?

>I don't know what this proves.

It proves that you don't know the difference between a Pascal compiler
and a C compiler! ;-) ;-) ;-) ;-) ;-)



More information about the Comp.lang.c mailing list