This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//program to merge two array using recursive function | |
#include "iostream" | |
#include "conio.h" | |
using namespace std; | |
void merge_r(int a1[],int a2[],int c[],int s1,int s2,int i=0,int j=0,int k=0){ | |
if(i<s1 && j<s2){ | |
if(a1[i]>a2[j]){ |