Program is to reverse the names stored in an array pointer:
Program is to reverse the 6 names stored in an array pointer as name[]
void main()
{
clrscr();
char *names[]={ "Anand","Vimal","Naresh","Amul","Sohan","Vishal" };
char *t;
int l=strlen(*names);
for (int i=0;i<(l+1)/2;i++)
{
t=names[i];
names[i]=names[l-i];
names[l-i]=t;
}
for (i=0;i<=l;i++)
{
cout<
}
getch();
}