short circuit evaluation

mouse at mcgill-vision.UUCP mouse at mcgill-vision.UUCP
Tue Feb 10 18:38:30 AEST 1987


In article <637 at rtech.UUCP>, jas at rtech.UUCP (Jim Shankland) writes:
> Now, one might say, "It is poor style for an expression with side
> effects to itself be an operand of an expression other than a "comma"
> expression."  (Though this prohibits the ever-popular
> "if ((c = getchar()) != EOF)".)

It also prohibits *ptr++ (which I don't think is excessive).

					der Mouse

USA: {ihnp4,decvax,akgua,utzoo,etc}!utcsri!mcgill-vision!mouse
     think!mosart!mcgill-vision!mouse
Europe: mcvax!decvax!utcsri!mcgill-vision!mouse
ARPAnet: think!mosart!mcgill-vision!mouse at harvard.harvard.edu



More information about the Comp.lang.c mailing list