how can I puts a char array reserve by recursion algoritym?



int i=0;
char word[50];
printf("enter the word");
scanf("%s",word);
reserve(word,i);

void reserve(char word[], int i)
{
if(word[i]!='\0')
{
reserve(&word[i+1],i+1);
printf("%c",word[i+1]);
}
}
.