Subj : Re: Really **wonderful** website for C interview questions!!!!! To : comp.programming From : Robert Bunn Date : Tue Jul 05 2005 01:12 am "Willem" wrote in message news:slrndcj08i.atb.willem@toad.stack.nl... > Robert wrote: > ) > ) "Willem" wrote in message > ) news:slrndcgmak.2e1g.willem@toad.stack.nl... > )> Robert wrote: > )> ) Okay. I guess I *am* a novice. How is > )> ) > )> ) if(x == (!!y) ) > )> ) any more useful (or clear) than > )> ) > )> ) if(x && y) > )> > )> Well, for starters those two statements don't have the same meaning, > )> even for boolean values... > )> > ) > ) Well, yes. You're right. I realized after sending I should've used > ) > ) if ( (!!x) == (!!y) ) > ) > ) for the first case. Does that make the question I asked answerable? > > No. They still don't have the same boolean-logic meaning. > Why don't you write out a truth-table for '&&' and '==' ? > > Okay. I see it now. (!!x) == (!!y) works out to !(x^y) Guess I *reallY* don't get the job now. *sheesh* Anyway, can I have a hint? *Is* there some use for "!!"? -- Rob .