Subj : Re: possible overflow? To : comp.programming From : Rob Somers Date : Fri Aug 26 2005 07:05 pm Peter Nilsson wrote: > while (mask != 0) > { > putchar('0' + !!(input & mask)); > mask >>= 1; > } Ok, the double negation operation is a little hazy in my mind. I was going to try and explain what I thought it is doing, but that seems to not be working. I was able to turn up something regarding the double '!!' which Dan Pop wrote on comp.lang.c, but his explanation was brief. Would someone care to explain what is happening with putchar('0' + !!(input & mask)); and how it works? Rob Somers .