/* * To input two sorted arrays ,merge them into a third array,which should also be sorted * @author-Karan Narain(karan@iitk.ac.in) * */ #include //We don't pass the sizes of the arrays to the function merge here as they are fixed (=5) void merge(int A[],int B[]) { int C[10],i=0,j=0,k=0; //i is used as index for array A //j is used as index for array B //and k is used as index for the merged array C while(i<5 && j<5) { //put the smaller of the elements A[i] and B[j] into C and increment the corresponding counters if(A[i]