home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!crdgw1!rdsunx.crd.ge.com!bart!volpe
- From: volpe@bart.NoSubdomain.NoDomain (Christopher R Volpe)
- Newsgroups: comp.lang.c
- Subject: Re: Question to test general C knowledge
- Message-ID: <1992Dec11.175620.20308@crd.ge.com>
- Date: 11 Dec 92 17:56:20 GMT
- References: <19980@ksr.com> <PTmLVB4w165w@quest.UUCP>
- Sender: volpe@bart (Christopher R Volpe)
- Reply-To: volpe@ausable.crd.ge.com
- Organization: GE Corporate Research & Development
- Lines: 28
- Nntp-Posting-Host: bart.crd.ge.com
-
- In article <PTmLVB4w165w@quest.UUCP>, kdq@quest.UUCP (Kevin D. Quitt) writes:
- |> jfw@ksr.com (John F. Woods) writes:
- |> >
- |> > "After
- |> > int i = 2;
- |> > i = ++i;
- |> > what does i equal?"
- |> >
- |> > If they answer, do not hire them.
- |>
- |> If they say other than "it's undefined", *then* don't hire them.
-
- This is an interesting question. Is the value of I really being modified
- more than once? There are two assignment operations going on, true. But,
- does assigning a variable the value that it already has constitute a
- modification?
-
-
- |>
- |>
- |> _
- |> Kevin D. Quitt 96.37% of all statistics are made up. srhqla!quest!kdq
-
- --
- ==================
- Chris Volpe
- G.E. Corporate R&D
- volpecr@crd.ge.com
-