Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!umeecs!yhe From: yhe@zip.eecs.umich.edu (Youda He) Newsgroups: comp.lang.c Subject: A Simple question Message-ID: <1881@zipeecs.umich.edu> Date: 9 Apr 90 02:57:18 GMT Reply-To: yhe@eecs.umich.edu (Youda He) Organization: University of Michigan EECS Dept., Ann Arbor, MI Lines: 16 Here is the sample program: main() { char a=255; unsigned char b = 255; printf("a=%X\n",a); printf("b=%X\n",b); } The result is a=FFFF b=FF on dos, by using zortech and mcs, char is 8 bit long, why a looks like 16bit? what is the difference of char and unsigned char on printf? -- Youda