[comp.lang.c] question on unsigned short vs. negative constant

ado@elsie.UUCP (04/23/87)

In environments where sizeof short < sizeof int,
what output should the program

		#include "stdio.h"

		main()
		{
			unsigned short	us;

			us = ~0;
			(void) printf("%d\n", us == -1);
		}

produce?  What output does it produce on your system?
If you have answers, I'd appreciate hearing from you by mail.
-- 
	UUCP: ..seismo!elsie!ado	   ARPA: elsie!ado@seismo.CSS.GOV
	     Elsie and Ado are trademarks of Borden, Inc. and Ampex.