From 9e0f990130bf71d669bcaae89280f34534331511 Mon Sep 17 00:00:00 2001 From: raidenkhan <96030339+raidenkhan@users.noreply.github.com> Date: Thu, 5 Oct 2023 18:55:15 +0000 Subject: [PATCH] Tried to comment using dynamic memory allocation as well --- accarr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/accarr.c b/accarr.c index 9230c0a..52e2a05 100644 --- a/accarr.c +++ b/accarr.c @@ -9,5 +9,10 @@ int main() { printf("You entered: \n"); for (int i = 0; i < 5; ++i) printf("%d\n", *(data + i)); + //if you prefer dynamic memmor allocation you may use the mallo + /* + int *data=malloc(sizeof(int)); + + */ return 0; }