how can I puts a char array reserve by recursion algoritym?
- From: "emre esirik(hacettepe computer science and engineering)" <emreesirik@xxxxxxxxx>
- Date: Fri, 23 Nov 2007 11:53:31 -0800 (PST)
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]);
}
}
.
- Follow-Ups:
- Re: how can I puts a char array reserve by recursion algoritym?
- From: Charlie Gordon
- Re: how can I puts a char array reserve by recursion algoritym?
- From: Barry Schwarz
- Re: how can I puts a char array reserve by recursion algoritym?
- From: Eric Sosman
- Re: how can I puts a char array reserve by recursion algoritym?
- Prev by Date: Re: Labels and pointers
- Next by Date: Re: parameter and functionpointer
- Previous by thread: Labels and pointers
- Next by thread: Re: how can I puts a char array reserve by recursion algoritym?
- Index(es):