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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started