aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch9-Debugging
diff options
context:
space:
mode:
authorDoolyBoi <[email protected]>2022-10-19 14:07:49 -0700
committerDoolyBoi <[email protected]>2022-10-19 14:07:49 -0700
commit9a629ce06e0b18ab7edf663c2d34ef54971456ad (patch)
tree12c54e5a071b59c5dcd8e90e5d5d9ed8a017401c /CST116-Ch9-Debugging
parentfinished debugging exercise 3 and updated debugging exercise 2 with technical... (diff)
downloadcst116-ch9-debugging-abd00l4h-9a629ce06e0b18ab7edf663c2d34ef54971456ad.tar.xz
cst116-ch9-debugging-abd00l4h-9a629ce06e0b18ab7edf663c2d34ef54971456ad.zip
fixed mistake in problem 1
Diffstat (limited to 'CST116-Ch9-Debugging')
-rw-r--r--CST116-Ch9-Debugging/CST116-Ch9-Havaldar.cpp3
1 files changed, 1 insertions, 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.