fun with your pcc-based compiler

Eugene D. Brooks III brooks at lll-crg.ARPA
Sat May 11 10:31:56 AEST 1985


> Anybody want to guess how pcc-based compilers interpret the integer
> constant "0x"?  How about "00x34"?
> 
> (That is, as in:
> 
> 	main()  {
> 
> 	int i;
> 	i = 0x;		/* or 00x34 ... */
> 	printf( "%x\n", i );
> 	}
> 
> ).
> 
> Have fun.
> 
> Jim Shankland
> Relational Technology, Inc.
> ..!ucbvax!mtxinu!rtech!jas
> ..!ihnp4!pegasus!rtech!jas

Typing in some text to /lib/ccom my only reaction is WOW!



More information about the Comp.lang.c mailing list