C Integer Constant Program On A 16 Bit Computer

/*---------- C INTEGER CONSTANT ON A 16 BIT COMPUTER -------*/
main()
{
	printf("Integer Values\n\n");
	printf("%d %d %d\n",32767, 32767+1, 32767+10);
	printf("\n");
	printf("Long integer values\n\n");
	printf("%ld %ld l%d\n",32767L, 32767+1L, 32767+10L);
}

Output

Integer Values 32767 -32768 -32759 Long integer Values 32767 32768 32777