diff options
| author | Aaron Hill <[email protected]> | 2022-10-05 14:17:23 -0700 |
|---|---|---|
| committer | Aaron Hill <[email protected]> | 2022-10-05 14:17:23 -0700 |
| commit | 1e2ef412baf30e1a17a39a626bc790af82d2e06b (patch) | |
| tree | 31114d7bf17a1c90cf17401b6a99aa229ece13c5 /CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp | |
| parent | 3.2 (diff) | |
| download | cst116-ch7-debugging-hill-1e2ef412baf30e1a17a39a626bc790af82d2e06b.tar.xz cst116-ch7-debugging-hill-1e2ef412baf30e1a17a39a626bc790af82d2e06b.zip | |
3.3
Diffstat (limited to 'CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp')
| -rw-r--r-- | CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp index d795af0..a4c6726 100644 --- a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp +++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp @@ -44,6 +44,9 @@ * 2) When prompted, enter the value of 10 for your age.
* Done
* 3) Why does the program print both "Child" and "Adult"?
+*
+* Because the code always prints adult after the "if" statements.
+*
* 4) Re-run the program this time with debugging and run to
* Breakpoint 2.
* 5) Why is the action with the else executing?
|