Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- void reverse (char string[20])
- {
- for(int i = strlen(string); i >= 0; i--)
- {
- printf("%c", string[i]);
- }
- }
- int main()
- {
- char string[20] = "Stephanie";
- reverse(string);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement