Joined
Last Seen
0 Reputation Points
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: Here's a better version of gfhgh's code: [code=c] #include <stdio.h> #include <string.h> void reverse(char **s, int start, int last) { char tmp; if (start >= last) return; char *s2 = *s; tmp = s2[start]; s2[start] = s2[last]; s2[last] = tmp; reverse(s, start + 1, last - 1); } int main() … |
The End.