@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 <[email protected]>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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<algogeeks%[email protected]>
> .
> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.