diff options
| -rw-r--r-- | CST116-Ch9-Debugging/CST116-Ch9-Havaldar.cpp | 3 |
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. |