<p><html></p> <p>Array is the collection of same type of data elements. In this blog we will learn to merge two array of same size named as a & b in a single array c.</p> <p> <img src="https://s18.postimg.org/98ffi1289/merge_two_array.png" width="640" height="358"/></p> <h1>Program :</h1> <p><br></p> <p><em>#include< stdio.h></em></p> <p><em>#include<conio.h></em></p> <p><em>int main()</em></p> <p><em>{</em></p> <p><em>int a[50],b[50],c[100],i,n,j,m;</em></p> <p><em>printf("Enter the value of n and m :");</em></p> <p><em>scanf("%d%d",&m,&n);</em></p> <p><em>printf("Enter the value of array :\n");</em></p> <p><em>for(i=0;i<n;i++)</em></p> <p><em>{</em></p> <p><em>scanf("%d",&a[i]);</em></p> <p><em>}</em></p> <p><em>for(i=0;i<m;i++)</em></p> <p><em>{</em></p> <p><em>scanf("%d",&m);</em></p> <p><em>}</em></p> <p><em>j=0;</em></p> <p><em>for(i=-;i<n;i++)</em></p> <p><em>{</em></p> <p><em>c[j]=a[i];</em></p> <p><em>printf("%d",a[i]);</em></p> <p><em>j++;</em></p> <p><em>}</em></p> <p><em>for(i=0;i<m;i++)</em></p> <p><em>{</em></p> <p><em>c[j]=b[i];</em></p> <p><em>printf("%d",b[i]);</em></p> <p><em>j++;</em></p> <p><em>}</em></p> <p><em>retrun 0;</em></p> <p><em>}</em></p> <p><br></p> </html>