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 Answers
+ 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(){