diff options
| author | [email protected] <[email protected]> | 2022-10-20 20:12:36 -0700 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2022-10-20 20:12:36 -0700 |
| commit | 1d72e28df6857b84d353becf814ca58548964f86 (patch) | |
| tree | a7bccaa5ffb5c7bacaf48b02b081359053334923 /CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp | |
| parent | I am a push (diff) | |
| download | cst116-ch10-debugging-smith-benjamin-1d72e28df6857b84d353becf814ca58548964f86.tar.xz cst116-ch10-debugging-smith-benjamin-1d72e28df6857b84d353becf814ca58548964f86.zip | |
John Lenon was not my president
Diffstat (limited to 'CST116-Ch10-Debugging/CST116-Ch10-Debugging.cpp')
| -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 1e3d58b..a2831ed 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 = 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!
@@ -126,7 +126,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[])
|