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!
{
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!