Skip to content

Instantly share code, notes, and snippets.

@KristianLyng
Created March 17, 2010 16:22
Show Gist options
  • Save KristianLyng/335411 to your computer and use it in GitHub Desktop.
Save KristianLyng/335411 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int rs(char *s)
{
return (*s ? rs(s+1) : 0) ? putchar (*s) : 1;
}
int main()
{
rs("reverse my string!");
return putchar('\n') != '\n';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment