From 4db254cff2eafba7490e5af7b8559294b19c9554 Mon Sep 17 00:00:00 2001 From: Ankit Pardeshi <63154035+ankit-pardeshi@users.noreply.github.com> Date: Fri, 1 May 2020 08:23:28 +0530 Subject: [PATCH] Update Typo in line 37 %f --- .../m2-code challenges - solution/m2-t9-e3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m2-diving-into-c-programming/m2-code challenges - solution/m2-t9-e3.cpp b/m2-diving-into-c-programming/m2-code challenges - solution/m2-t9-e3.cpp index 0470836..77e87cd 100644 --- a/m2-diving-into-c-programming/m2-code challenges - solution/m2-t9-e3.cpp +++ b/m2-diving-into-c-programming/m2-code challenges - solution/m2-t9-e3.cpp @@ -34,7 +34,7 @@ int main() { return 0; } /* - In the statement "scanf(%d, p + i)", "p + i" is the address of the memory location which is being incremented with each iteration. + In the statement "scanf(%f, p + i)", "p + i" is the address of the memory location which is being incremented with each iteration. In the first iteration where i = 0: -> p + i = p + 0 = p => This means the pointer is pointing to the address of the first element present in the allocated memory block.