From f02458c812104b922e8317169b04d5bc1de9b411 Mon Sep 17 00:00:00 2001 From: Ralphlosho <117830863+Ralphlosho@users.noreply.github.com> Date: Fri, 3 Feb 2023 07:12:25 +0300 Subject: [PATCH] 102-magic.c The address stored at p+5 is the address of a[2]. --- magic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magic.c b/magic.c index 552d3c4..8fbdd3d 100644 --- a/magic.c +++ b/magic.c @@ -16,7 +16,7 @@ int main(void) * - only one statement * - you are not allowed to code anything else than this line of code */ - ; + *(p + 5) = 98; /* ...so that this prints 98\n */ printf("a[2] = %d\n", a[2]); return (0);