Subj : Re: possible overflow? To : comp.programming From : Peter Nilsson Date : Sun Aug 28 2005 06:10 pm > Rob wrote: > ) putchar('0' + !!(input & mask)); Willem wrote: > '0' is the ASCII value of the character 0. On implementations using ASCII, yes. > If you add one to that, you get the ASCII value of the character 1. Your assumption of ASCII is not required since the C language requires the characters '0'..'9' be consecutive codings [although it does not require the same for 'a'..'z' or 'A'..'Z'.] -- Peter .