#include<iostream.h>
#include <string.h>
void reverse(char *s,char *p,int g)
{
if(*s=='\0'){p[g]='\0';return;}
reverse(s+1,p,g);
p[strlen(s)-1]=s[0];
}
main()
{
char *s="mypicture";
char *p=new char[strlen(s)];
int g;
g=strlen(s);
cout<<s<<endl;
reverse(s,p,g);
cout<<p<<endl;
}