Path: utzoo!attcan!utgpu!watmath!att!tut.cis.ohio-state.edu!network!ucsd!orion.cf.uci.edu!uci-ics!zardoz!conexch!ccicpg!cci632!rit!tropix!moscom!ur-valhalla!uhura.cc.rochester.edu!sunybcs!rutgers!cs.utexas.edu!uunet!ficc!peter
From: peter@ficc.uu.net (Peter da Silva)
Newsgroups: comp.lang.c
Subject: Re: What's a C expert?
Message-ID: <4598@ficc.uu.net>
Date: 22 Jul 89 15:20:45 GMT
References: <12214@well.UUCP> <6057@microsoft.UUCP>
Distribution: all
Organization: Xenix Support
Lines: 15

In article <6057@microsoft.UUCP>, paulc@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@ficc.uu.net, +1 713 274 5180.
Personal: ...!texbell!sugar!peter, peter@sugar.hackercorp.com.