Question: Write a C++ program to read two 2-dimensional arrays of values having two and three columns. Define the number of rows and and columns as
Write a C++ program to read two 2-dimensional arrays of values having two and three columns. Define the number of rows and and columns as global constant in your program. Write a function named readArray to store the input values in array. Write a function name printArray to print the values stored in the array. Write a function name addArrays to add two arrays and store them the in third array. Call readArray to read the first array, and call printArray to print the values of the first array. Then call readArray to read the second array, and call printArray to print the values of the second array. Call the function addArrays to add the both arrays and store them in the third array. Call the function printArray to print the output values stored in third array.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
