Question: void rearrange(int *a1, int n, int *a2); The function should use pointer arithmetic not subscripting to visit array elements. In other words, eliminate the loop
void rearrange(int *a1, int n, int *a2); The function should use pointer arithmetic not subscripting to visit array elements. In other words, eliminate the loop index variables and all use of the [] operator in the function. The rearrange function merges the two sets of integers by appending the first set to the second set and store the result in the second array a2. The function takes an int array parameters a1 and 2 as the first parameter and third parameters and the number of elements of the arrays as the second parameter.
C PROGRAMING
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
