/*Serial No.81 [swami55.cpp]*/
#include<stdio.h>
#include<conio.h>
void main()
{
int i,arr1[5],arr2[5];
printf("Enter 6 numbers:=\n");
for(i=0;i<6;i++)
{
scanf("%d",&arr1[i]);
}
for(i=0;i<6;i++)
{
arr2[i]=arr1[i];
}
printf("copied array:=\n");
for(i=0;i<6;i++)
{
printf("%d\n",arr2[i]);
}
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int i,arr1[5],arr2[5];
printf("Enter 6 numbers:=\n");
for(i=0;i<6;i++)
{
scanf("%d",&arr1[i]);
}
for(i=0;i<6;i++)
{
arr2[i]=arr1[i];
}
printf("copied array:=\n");
for(i=0;i<6;i++)
{
printf("%d\n",arr2[i]);
}
getch();
}
No comments:
Post a Comment
If you have any doubt, feel free to ask...