home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18486 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  896 b 

  1. Path: sparky!uunet!spool.mu.edu!yale.edu!jvnc.net!netnews.upenn.edu!netnews.cc.lehigh.edu!ns1.cc.lehigh.edu!dsbb
  2. From: dsbb@ns1.cc.lehigh.edu (D. SPENCER BEECHER)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Question to test general C knowledge
  5. Message-ID: <1992Dec16.180117.72534@ns1.cc.lehigh.edu>
  6. Date: 16 Dec 92 18:01:17 GMT
  7. Organization: Lehigh University
  8. Lines: 19
  9.  
  10. >>>>    int i = 2;
  11. >>>>    i = ++i;
  12. >>> If they say other than "it's undefined", *then* don't hire them.
  13.  
  14. After reading much discussion on this matter, I have only
  15. one question:
  16.  
  17. On what page of the white book does it indicate precedence in
  18. evaluation of the above statement?
  19.  
  20. I would compare this to the line:
  21.  
  22. putchar(c)=getchar();
  23.  
  24. (which, by the way, does NOT work on any but the most forgiving compilers)
  25. -- 
  26.                    _ _     _ _     _ _
  27.   -Spence         [O.O]   )x.x(   )O.O(
  28.                     O       O      -*-
  29.