Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void reverse(char t[])
- {
- int i = 0;
- int length = strlen(t);
- for (i = 0; i < length/2; i++)
- {
- char tmp = t[i];
- t[i] = t[length-1-i];
- t[length-1-i] = tmp;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement