Question: 2. (32p) Write a C MAIN function and two functions SUMF and PRTF to accomplish the following tasks. Within the MAIN function : Declare a
2. (32p) Write a C MAIN function and two functions SUMF and PRTF to accomplish the following tasks. Within the MAIN function : Declare a two-dimensional 8X6 integer array A. Initialize array A with the random numbers between 1000000 and 10000000 Declare another two-dimensional 8X6 integer array B. Pass the array Ato the function PRTF to print it. Pass the array A and B to the SUMF as arguments. Pass the array B to the function PRTF to print it. Within the SUMF: Compute and store the sum of the digits of array A elements into the corresponding elements of array B. Within the PRTE: Print arrays A and B
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
