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