From 8bd985a1310128e6fd89d049ae18483d0125a5df Mon Sep 17 00:00:00 2001 From: Mmaneme Emmanuel <140139549+Mmaneme-Emmanuel@users.noreply.github.com> Date: Sat, 23 Sep 2023 13:34:58 +0100 Subject: [PATCH] Update magic.c my 0x06 project more of pointer, loop and string --- 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);