Explain how two-dimensional arrays are passed to functions. In your explanation include a two-dimensional array declaration and initialization, a function prototype that receives a two-dimensional array, and a function header with an empty body that matches the function prototype. Demonstrate how a two-dimensional array is passed to the function as an argument ( this is in C++)
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
29 | 30 | 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 1 | 2 |