Link List Program Data Structure :: Array

Link List Program Data Structure :: Array :: MERGE

#include<iostream.h>
#define L1 0
#define U1 5
#define L2 0
#define U2 5
#define L 0
#define U 10
void main()
{
int a[U1],b[U2],c[U],i;
for(i=L1;i<U1;i++)
{
cout<<“Enter a[“<<i<<“]=”;
cin>>a[i];
}
for(i=L2;i<U2;i++)
{
cout<<“Enter b[“<<i<<“]=”;
cin>>b[i];
}
for(i=L;i<U1;i++)
{
c[i]=a[i];
}
for(i=U1;i<U;i++)
{
c[i]=b[i-5];
}
for(i=L;i<U;i++)
cout<<“c[“<<i<<“]=”<<c[i]<<endl;
}

 

Share

About the Author

Akash Padhiyar

Visit Website

There are no comments yet, add one below.

Leave a Comment

Your email address will not be published. Required fields are marked *

*

Time limit is exhausted. Please reload CAPTCHA.