Question: 1. Write a C function named SplitAndSummarize that receives three different (2D) two dimensional arrays all of type integer. The received arrays are of the
1.
Write a C function named SplitAndSummarize that receives three different (2D) two dimensional arrays all of type integer. The received arrays are of the following sizes:
The first array A will contain data of size 10 X 10
The second and third arrays (B and C) have the same size which is 10 X 6.
Your function is supposed to split the array A into two halves, the left side half will be stored in B and the right side half will be stored in C. The extra column for B and for C will include the maximum of the values in the corresponding rows for B and C respectively. See Below Example:
2. Write the main function that
- Defines a 2D array of size 10 X 10 named X
- Defines another two 2D arrays of size 10 X 6 named Y and Z respectively
- Initializes the elements of the variable X with random integers between 1 and 50 (inclusive)
- Properly calles the function SplitAndSummarize defined in part1
- Properly print the elements of the three arrays in a tabular format as in the sample run
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
