#inlcude"conio.h"
#include"string.h"
void main()
{
int a[10],x=0,n,l=0,max=0;
char b[10][30],temp[30];
clrscr();
printf("enter how many persons data\n");
scanf("%d",&n);
printf("enter the number and name\n");
for(x=0;x
{
max=l;
strcpy(temp,b[x]);
}
}
printf("the entered data is\n");
for(x=0;x
printf("%d\t",a[x]);
printf("%s\n",b[x]);
}
printf("the longest string is %s",temp);
getch();
}
No comments:
Post a Comment