void RevStr (char *str){
char ch = '\0';
if (*str){
ch = *str;
RevStr (++str);
}
printf ("%c", ch);
}

On Fri, Sep 24, 2010 at 12:37 AM, Nishant Agarwal <
nishant.agarwa...@gmail.com> wrote:

>
> @Albert
> i think this should be right....
>
> static int i=0;
> int j;
> void xstrrev(char *s)
> {
>     char t;
>     if(i==0)
>     j=strlen(s)-1;
>
>     if(i<j)
>     {
>         t=s[i];
>         s[i++]=s[j];
>         s[j--]=t;
>         xstrrev(s);
>
>     }
> }
> On Fri, Sep 24, 2010 at 12:05 AM, albert theboss 
> <alberttheb...@gmail.com>wrote:
>
>> Ur function prototype is not similar to one i posted before....
>>
>> check it out....
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algoge...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>
>
> --
> .... :-)
> *****************************************
> Nishant Agarwal
> Computer Science and Engineering
> NIT Allahabad
> *****************************************
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algoge...@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to