What's a C expert?

Peter da Silva peter at ficc.uu.net
Mon Jun 19 01:20:45 AEST 1989


In article <6057 at microsoft.UUCP>, paulc at microsoft.UUCP (Paul Canniff 2/1011) writes:
> How about ... can tell why the following code prints "false" (on 8-bit char
> systems).

> 	char x = 0xff;

> 	if (x != 0xff)
> 		printf("FALSE\n");

If char is unsigned it doesn't.
-- 
Peter da Silva, Xenix Support, Ferranti International Controls Corporation.

Business: uunet.uu.net!ficc!peter, peter at ficc.uu.net, +1 713 274 5180.
Personal: ...!texbell!sugar!peter, peter at sugar.hackercorp.com.



More information about the Comp.lang.c mailing list