Subj : Re: Really **wonderful** website for C interview questions!!!!! To : comp.programming From : Robert Bunn Date : Tue Jul 05 2005 04:24 am "CBFalconer" wrote in message news:42C9EB3C.9CF8243B@yahoo.com... > Robert Bunn wrote: > > > ... snip ... > > > > Anyway, can I have a hint? *Is* there some use for "!!"? > > It converts any integral value into one of 0 or 1. > Okay . . . static_cast does that -- but that's not C. C doesn't even have a "bool" type to cast to, does it? So the idiom of (!!x) is pretty much the same as (x?1:0) if I read and reason correctly. That actually sorta makes sense to me, I think. But . . . oh, I give up. I'm completely guessing at the answer, but I can't think of any reason I would ever use that construction. In my own defense, though, I have never claimed to be a good (or even competent) C programmer. Thanks to all for the info. -- Rob .