From 262f2f960a54ae161cf6a369a92a59b930dac458 Mon Sep 17 00:00:00 2001 From: tafaar Date: Tue, 25 Oct 2022 12:50:00 -0700 Subject: Did 3.3 --- CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp') diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp index 3a50611..b9d106e 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp @@ -68,6 +68,9 @@ * * 3) Add a line to assign the contents of the second element of * varX to 99 in FunctionTwo. +* +* Done +* * 4) Rebuild your program. * 5 Obviously there is a problem. Remove the const from the * function declaration and header for varX. @@ -148,6 +151,8 @@ void FunctionTwo(const int varX[], const int varY[], int varZ[]) { for (int x = 0; x < SIZE; x++) // Notice the const SIZE here varZ[x] = varX[x] + varY[x]; + + varZ[1] = 99; } void PrintFunction(const int varX[20], const int varY[20], const int varZ[20]) -- cgit v1.2.3