Re: Why multiplication not allowed?

From: CBFalconer (cbfalconer_at_yahoo.com)
Date: 01/07/04


Date: Wed, 07 Jan 2004 15:16:00 GMT

Sean Kenwrick wrote:
>
... snip ...
>
> But I think the reason I didn't get the job was because one of the
> other questions the interviewer asked me was to tell him what was
> wrong with the following statement:
>
> i=+i;
>
> I said that there was nothing wrong with it, but the interviewer
> claimed that it was an ambiguous statement because it could mean
> adding i to itselt or setting i to +i. I got into an argument
> with him saying that he must be confused with i+=i; but he was
> adament he was right and got annoyed that I was disagreeing wih him.
>
> Afterwards I wondered whether this might have been some kind of
> syntax left over from a very early incarnation of C which was
> subsequently dropped. Perhaps the members of this group could
> enlighten me about this since I think that this guy was just a
> complete idiot.

You've got it. He had just been around from pre-standardization
days. Note that proper civilized use of blanks untangles
everything.

-- 
Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!


Relevant Pages

  • Re: Why multiplication not allowed?
    ... Joona I Palaste wrote: ... >>But I think the reason I didn't get the job was because one of the other ... >>questions the interviewer asked me was to tell him what was wrong with the ... >>that it was an ambiguous statement because it could mean adding i to itselt ...
    (comp.lang.c)
  • Re: Why multiplication not allowed?
    ... Sean Kenwrick scribbled the following: ... > But I think the reason I didn't get the job was because one of the other ... > that it was an ambiguous statement because it could mean adding i to itselt ... That the interviewer still clung to the obsolete meanings of those ...
    (comp.lang.c)
  • Re: OT ~ Star Jones Reynolds admits having gastric bypass
    ... I saw her as the voice of reason who kept the ... but she was responsible for Rosie being there in the first ... celebs, one way or the other, except that she was a "soft" interviewer ... Sorrority Mom -- the voice of reason, as you said, or the ...
    (rec.arts.tv.soaps.cbs)
  • Re: How to find the greatest of two numbers without using the comparison operators?
    ... it used to be that machine time was expensive and human time was ... job I'd wait until the interviewer would toss off the mandatory 'Is there ... instinctively, 'The first correct answer, of course'... ...
    (comp.lang.cobol)
  • Re: Book question on threads
    ... > As I said in my reply to Nigel, questions about programming (similar to ... > programs about science and math) are very clear-cut. ... I had a "technical interview" last Saturday and the interviewer and I ...
    (comp.lang.java.programmer)