From 9a629ce06e0b18ab7edf663c2d34ef54971456ad Mon Sep 17 00:00:00 2001 From: DoolyBoi Date: Wed, 19 Oct 2022 14:07:49 -0700 Subject: fixed mistake in problem 1 --- CST116-Ch9-Debugging/CST116-Ch9-Havaldar.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CST116-Ch9-Debugging/CST116-Ch9-Havaldar.cpp b/CST116-Ch9-Debugging/CST116-Ch9-Havaldar.cpp index 41d55ae..3c029bc 100644 --- a/CST116-Ch9-Debugging/CST116-Ch9-Havaldar.cpp +++ b/CST116-Ch9-Debugging/CST116-Ch9-Havaldar.cpp @@ -17,8 +17,7 @@ * 7) The execution continues to the function header for GetAge. * 8) Step into one more time. * 9) Why did the address of age and value change? -* The address of age changed to 0x00000059fe1df774 {-858993460} and the value of age changed to -858993460. -* The reason why the values of age and it's address changed is becuase we re-instantiated the variable but didn't give it variable, so it just became filled with garbage +* The reason why the values of age and it's address changed is becuase we made another variable within GetAge() so therefore a different address and a different value * 10) Step over the cout and cin statements. * 11) Verify the value entered is stored properly in age. * 12) Step into until the flow returns to main. -- cgit v1.2.3