From d98f46ce647846b0aa30b2e16a30fd4e152a1bf5 Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Thu, 10 Jul 2025 22:55:07 +0200 Subject: Add new code Signed-off-by: Carlos Maiolino --- CSAPP/dsizes.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 CSAPP/dsizes.c (limited to 'CSAPP/dsizes.c') diff --git a/CSAPP/dsizes.c b/CSAPP/dsizes.c new file mode 100644 index 0000000..7f57bc9 --- /dev/null +++ b/CSAPP/dsizes.c @@ -0,0 +1,12 @@ +#include + +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; +} -- cgit v1.2.3