From f3c33a48816677824d1938c4c110100f04813dac Mon Sep 17 00:00:00 2001 From: prestonderek Date: Fri, 21 Oct 2022 10:44:20 -0700 Subject: Finished exercise three and watched the change of the ASCII when changing the value in the watch window --- CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp index ee63d02..93a079b 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp @@ -99,7 +99,6 @@ int main() // Breakpoint 3 // Put breakpoint on the following line - varX[1] = 99; FunctionTwo(varX, varY, varZ); varZ[0] = -99; @@ -136,6 +135,7 @@ void FunctionOne(int varX[], int varY[]) } void FunctionTwo(int varX[], const int varY[], int varZ[]) { + varX[1] = 99; for (int x = 0; x < SIZE; x++) // Notice the const SIZE here varZ[x] = varX[x] + varY[x]; } -- cgit v1.2.3