home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18200 next >
Encoding:
Internet Message Format  |  1992-12-11  |  1.2 KB

  1. Path: sparky!uunet!crdgw1!rdsunx.crd.ge.com!bart!volpe
  2. From: volpe@bart.NoSubdomain.NoDomain (Christopher R Volpe)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Question to test general C knowledge
  5. Message-ID: <1992Dec11.175620.20308@crd.ge.com>
  6. Date: 11 Dec 92 17:56:20 GMT
  7. References: <19980@ksr.com> <PTmLVB4w165w@quest.UUCP>
  8. Sender: volpe@bart (Christopher R Volpe)
  9. Reply-To: volpe@ausable.crd.ge.com
  10. Organization: GE Corporate Research & Development
  11. Lines: 28
  12. Nntp-Posting-Host: bart.crd.ge.com
  13.  
  14. In article <PTmLVB4w165w@quest.UUCP>, kdq@quest.UUCP (Kevin D. Quitt) writes:
  15. |> jfw@ksr.com (John F. Woods) writes:
  16. |> > 
  17. |> > "After
  18. |> >     int i = 2;
  19. |> >     i = ++i;
  20. |> >  what does i equal?"
  21. |> > 
  22. |> > If they answer, do not hire them.
  23. |> 
  24. |>     If they say other than "it's undefined", *then* don't hire them.
  25.  
  26. This is an interesting question. Is the value of I really being modified
  27. more than once? There are two assignment operations going on, true. But,
  28. does assigning a variable the value that it already has constitute a 
  29. modification?
  30.  
  31.  
  32. |> 
  33. |> 
  34. |>  _
  35. |> Kevin D. Quitt      96.37% of all statistics are made up.     srhqla!quest!kdq
  36.  
  37. -- 
  38. ==================
  39. Chris Volpe
  40. G.E. Corporate R&D
  41. volpecr@crd.ge.com
  42.