fun with your pcc-based compiler

Jim Shankland jas at rtech.ARPA
Wed May 8 04:57:23 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



More information about the Comp.lang.c mailing list