Thread (1 message) 1 message, 1 author, 2000-08-11

char is not signed char

From: David L. Thompson <hidden>
Date: 2000-08-11 18:12:15

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@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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help