char is not signed char
David L. Thompson
dthompsn at cs.umt.edu
Sat Aug 12 04:12:15 EST 2000
Has anybody else noticed that char is not signed char but unsigend
char? If I write the following:
#include <stdio.h>
int main() {
char a = -3;
if(a > 0)
printf("Ooops!\n");
return 0;
}
and run it, I get Oooops!
Currently I have installed fsirl's 2.95.3 version of gcc.
Thanks,
David
--
.............................................................................
David L. Thompson The University of Montana
mailto:dthompsn at cs.umt.edu Computer Science Department
http://www.cs.umt.edu/u/dthompsn Missoula, MT 59812
Work Phone : (406)257-8530
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list