2012-03-21 12:43:21

Abel Gancsos
put String in reverse using C

char *reverse(char a[])
{
int i=linecount(a)-1,j=0;

char temp2[linecount(a)-2];
while(i>=-1)
{
temp2[j]=("%s",a[i]);
i--;
j++;
}

return ("%s",temp2);
}




TIP: REPLACE [] WITH STANDARD HYPERTEXT PROTOCOL.
TIP: REPLACE WHATEVER IS BETWEEN THE [] WITH YOUR INFORMATION.



Hope that helps!