Hi,
I get a signed char on linux Intel.
#include <stdio.h>
int main() {
char a = -3;
if(a > 0) puts("Ooops!");
else puts("It's signed!");
return 0;
}
$ ./a.out
It's signed!
Tom
On Fri, 11 Aug 2000, David L. Thompson wrote:
>Cleaning a few things up lately, I just found out that on my LinuxPPC
>installation, char and signed char are different i.e. char is
>unsigned char. Is this the same case for Linux Intel? Could someone
>run the test:
>
>#include <stdio.h>
>
>int main() {
>
> char a = -3;
> if(a > 0)
> printf("Ooops!\n");
> return 0;
>}
>
>And let me know? If I change the char to signed char above then it
>works as expected.
>
>David
>--
>.............................................................................
>David L. Thompson The University of Montana
>mailto:[EMAIL PROTECTED] Computer Science Department
>http://www.cs.umt.edu/u/dthompsn Missoula, MT 59812
> Work Phone : (406)257-8530
>