aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
diff options
context:
space:
mode:
authorCEOofOogaBooga <[email protected]>2022-10-20 20:13:05 -0700
committerCEOofOogaBooga <[email protected]>2022-10-20 20:13:05 -0700
commit6e3dabd6b78fbb7a6ccc492fad4797f479527dec (patch)
treee30c65d3e09940a28d98a5249e88dda47fdb5c73 /CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
parentprogress (diff)
downloadcst116-ch10-debugging--trinh--6e3dabd6b78fbb7a6ccc492fad4797f479527dec.tar.xz
cst116-ch10-debugging--trinh--6e3dabd6b78fbb7a6ccc492fad4797f479527dec.zip
Exercise 2 done
Diffstat (limited to 'CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp')
-rw-r--r--CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
index 7ec5e14..e9300c0 100644
--- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
+++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp
@@ -84,11 +84,11 @@ void FunctionTwo(const int varX[], const int varY[], int varZ[]);
void PrintFunction(const int varX[], const int varY[],
const int varZ[]);
-const int SIZE = SIZE;//changed all 5s to SIZE
+const int SIZE = 10;//changed from 5 to 10
int main()
{
- int varX[10]; //changed from 5 to 10
+ int varX[SIZE]; //changed all 5s to SIZE
int varY[SIZE];
int varZ[SIZE]; // Notice how we used the const here!