WAP for copy one array into anather array
#include<conio.h>
#include<iostream.h>
void main()
{
int a[20],b[20],n,i;
cout<<"\n enter size of array :";
cin>>n;
cout<<"\n enter element of array :";
for(i=1;i<=n;i++)
cin>>a[i];
for(i=1;i<=n;i++)
{
b[i]=a[i];
}
cout<<"\n The copy of array is :";
for(i=1;i<=n;i++)
cout<<b[i];
getch();
clrscr();
}
No comments:
Post a Comment