Posts
 
Reputation
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
~2K People Reached
Favorite Forums
Favorite Tags
c x 1

1 Posted Topic

Member Avatar for varun51

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() …

Member Avatar for Amangpt01
0
2K

The End.