From edeb3a1ee193686b4a8dfdd867232fb180a6fc15 Mon Sep 17 00:00:00 2001 From: Luca Conte Date: Mon, 16 Oct 2023 13:38:04 +0200 Subject: [PATCH] add pointer size --- a3-1/sizes.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/a3-1/sizes.c b/a3-1/sizes.c index 01c97b5..8b8ce70 100644 --- a/a3-1/sizes.c +++ b/a3-1/sizes.c @@ -18,6 +18,8 @@ int main(void) { printf("\n"); printf("double: %ld\n", sizeof(d)); printf("long: %ld\n", sizeof(ld)); + printf("\n"); + printf("pointer: %ld\n", sizeof(&i)); return 0; }