summaryrefslogtreecommitdiff
path: root/CSAPP/dsizes.c
blob: 7f57bc9c6c647702616b96ad846e251d1899c364 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>

int main(void)
{
	int dpos32 = (-2147483648 > 0);
	int hpos32 = (0x80000000 > 0);

	printf("dpos32 %d - hpos32 %d\n", dpos32, hpos32);
	printf("%ld\n", 1L << (sizeof(long) << 3) - 1);

	return 0;
}