Skip to content

Instantly share code, notes, and snippets.

@x5lcfd
Created June 3, 2013 14:51
Show Gist options
  • Save x5lcfd/5698732 to your computer and use it in GitHub Desktop.
Save x5lcfd/5698732 to your computer and use it in GitHub Desktop.
reverse a input string.
void reverse() {
int c;
c = getchar();
if (c != '\n')
reverse();
putchar(c);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment