Re: Really **wonderful** website for C interview questions!!!!!



Oooookaaaaay...

I'm not a novice, but at risk of being labelled one, I'm looking at x= !!y
wondering...

I'd assume that !! would be interpreted as NOT NOT and have the effect of
turning any non-zero integer number into a 1, and leaving 0 as 0. ??

I can't imagine that the compiler would optimise it away. Perhaps it
doesn't compile?

What's the official answer then? Did I get the job?


"Scott Moore" <samiamsansspam@xxxxxxx> wrote in message
news:d9cbs3$dfh$1@xxxxxxxxxxxxxxxxxxxxxxxxx
> rajanarayan2005@xxxxxxxxx wrote:
> > Hello folks!!!!
> >
> > I just found the BEST and the MOST comprehensive
> > website for C related questions and their answers. It
> > has a VERY, VERY, VERY good collection of the MOST
> > FREQUENTLY ASKED interview questions.
> >
> > http://www.cracktheinterview.com
> >
> > If you can understand the solutions on this site, you
> > can 100% get through ANY interview - I can say for
> > sure!!. I have taken the printouts for all the
> > questions and the answers!. Its really too good
> > to be true. Really someone has taken lot of pains to
> > consolidate the questions....
> >
> > ~Raja
> >
>
> My favorite for interviewees:
>
> What is "!!", as in:
>
> x = !!y;
>
> Is it useful ?
>
> That question divides the C experts from novices quite fast.
>


.



Relevant Pages

  • Re: Really **wonderful** website for C interview questions!!!!!
    ... > I'm not a novice, but at risk of being labelled one, I'm looking at x=!!y ... > I can't imagine that the compiler would optimise it away. ... >>>FREQUENTLY ASKED interview questions. ...
    (comp.programming)
  • Re: Really **wonderful** website for C interview questions!!!!!
    ... Joe Butler wrote: ... > I'm not a novice, but at risk of being labelled one, ... > I can't imagine that the compiler would optimise it away. ...
    (comp.programming)
  • Re: Really **wonderful** website for C interview questions!!!!!
    ... > I'm not a novice, but at risk of being labelled one, I'm looking at x=!!y ... > I can't imagine that the compiler would optimise it away. ...
    (comp.programming)
  • Re: DOES> improvement
    ... the same way that any colon word is used. ... didn't do this in novice.4th though; maybe later I will upgrade novice. ... I wrote novice.4th so that novices would have basic data structures, ... In my own compiler, I defined CREATE as HERE CONSTANT. ...
    (comp.lang.forth)
  • Re: bug in SwiftForth v2
    ... to whether the package is by or for a novice. ... As for ALIGN, that is almost always used at compile-time rather than ... For me to go through your compiler and rewrite every word ... unnecessary CALL instructions also provides a significant speed boost. ...
    (comp.lang.forth)