0
How to implement reversestring() function with const char *string
Iâve been trying to figure out how to implement a reversestring() function with the following function call: char * reversestring(const char *string) { } I havenât had any luck, any help?
3 RĂ©ponses
+ 1
Take a character array.
Use a loop to assign array characters from indexes strlen(string) -1 to 0 into new array from 0 to strlen(string)
Return new character array...
+ 1
I managed to solve this problem now, thank you Jayakrishnađźđł
https://code.sololearn.com/c40qidPeqJby/?ref=app
0
you're welcome... Taylor Cameron
Edit:
Use
int main(){