home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18413 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.2 KB  |  31 lines

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