Question: Page of 3 Write a Cprogram convert.c that converts each number in an array by the sum of that number eles & modlbes 10. A
Page of 3 Write a Cprogram convert.c that converts each number in an array by the sum of that number eles & modlbes 10. A sampleinput/output 2. Enter the length of the array:5 Enter the elements of the array: 3 928 4 14 77 Output: 94003 The program should include the following function void convert (int "al, int n, int a2) The function converts every element in array al of length n to an output array a2. The function should use pointer arithmetic (instead of array subscripting). In other words, eliminate the loop index variables and all use of the [1 operator in the function. 1) The program will read in the number of element of the array, for example, 4, then read in the numbers in the array, for example, 3 16 81 9. 2) In the main function, declare the input array after reading in the number of element of the array, then read in the elements, and declare the output array, then call the convert function. The main function should display the converted array. Before you submit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
