On Mon, 27 Oct 2003 llile@SALTONUSA.COM wrote: > My favorite compiler defaults to unsigned char, but others > probably do something different. Whether a "char" is signed or unsigned is implementation-dependent. A "char" is meant to store an ASCII character, not to be used as a general-purpose integer. For this purpose, you'd wanted to specify a "signed char" or an "unsigned char." > Some others might assume the number 10 means 0x10 AFAIK. Perhaps an assembler would, but not a C compiler. > On Mon, 27 Oct 2003 llile@SALTONUSA.COM wrote: > > > char i; > > i= 9; > > do{ > > some stuff > > }while(--i < 9 ); > > > > will define behavior for every possible value of i. -- John W. Temples, III -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body