home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!usc!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!mksol!mccall
- From: mccall@mksol.dseg.ti.com (fred j mccall 575-3539)
- Subject: Re: Another question to test general C knowledge
- Message-ID: <1992Dec15.172809.21751@mksol.dseg.ti.com>
- Organization: Texas Instruments Inc
- References: <1992Dec13.045828.1714@crd.ge.com> <Ju9qVB1w165w@bluemoon.use.com> <1992Dec15.131413.3057@infonode.ingr.com>
- Date: Tue, 15 Dec 1992 17:28:09 GMT
- Lines: 20
-
- In <1992Dec15.131413.3057@infonode.ingr.com> dfw@fed_img.ingr.com writes:
-
- >Yeah,
- > how about
-
- > i = i++;
-
- > What are the side effects of THIS (i never gets incremented).
- > i = ++i; is trivial; ++i PRE-increments i, then assigns it to itself,
- > just as i++ or i += 1.
-
- Well, either someone isn't paying attention, or they just like to
- start long threads. It's undefined. Probably could spindle your cat
- or pleat the dog or something.
-
- --
- "Insisting on perfect safety is for people who don't have the balls to live
- in the real world." -- Mary Shafer, NASA Ames Dryden
- ------------------------------------------------------------------------------
- Fred.McCall@dseg.ti.com - I don't speak for others and they don't speak for me.
-