diff options
| author | Trenton Stark <[email protected]> | 2022-10-22 12:18:10 -0700 |
|---|---|---|
| committer | Trenton Stark <[email protected]> | 2022-10-22 12:18:10 -0700 |
| commit | c028ab80977d60cc2f326f4bb55437aa2ed26af2 (patch) | |
| tree | 9db097bdb7f82cf8a4cf79a5306680d8995c290f | |
| parent | Completed exercise 1 (diff) | |
| download | cst116-ch10-debugging-stark-c028ab80977d60cc2f326f4bb55437aa2ed26af2.tar.xz cst116-ch10-debugging-stark-c028ab80977d60cc2f326f4bb55437aa2ed26af2.zip | |
Completed excersize 2
| -rw-r--r-- | CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp index bc7ada8..ac3c08a 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp @@ -83,11 +83,11 @@ void FunctionOne(int varX[], int varY[]); void FunctionTwo(const int varX[], const int varY[], int varZ[]);
void PrintFunction(const int varX[], const int varY[], const int varZ[]);
-const int SIZE = 5;
+const int SIZE = 10;
int main()
{
- int varX[5];
+ int varX[SIZE];
int varY[SIZE];
int varZ[SIZE]; // Notice how we used the const here!
@@ -125,7 +125,7 @@ void FunctionOne(int varX[], int varY[]) // Put breakpoint on the following line
varX[x] = x;
- for (int x = 0; x < 5; x++)
+ for (int x = 0; x < SIZE; x++)
varY[x] = x + 100;
}
void FunctionTwo(const int varX[], const int varY[], int varZ[])
|