diff options
Diffstat (limited to 'Project1/program.cpp')
| -rw-r--r-- | Project1/program.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp index d40eeb1..212d73f 100644 --- a/Project1/program.cpp +++ b/Project1/program.cpp @@ -18,7 +18,7 @@ constexpr size_t COLUMN = 4; int matrix[3][4]{ {1,2,3,4}, {5,6,7,8}, {9,10,11,12} }; -int print2DArray(int(&matrix)[3][4]) +int print2DArray(int(&matrix)[ROW][COLUMN]) { for (auto i = 0u; i < ROW; ++i) { @@ -35,6 +35,11 @@ int main() print2DArray(matrix); + matrix[0][0] = 10; + matrix[1][0] = 50; + matrix[2][0] = 90; + + print2DArray(matrix); return 0; }
\ No newline at end of file |