Skip to content

Instantly share code, notes, and snippets.

@KristianLyng
Created January 21, 2010 12:36
Show Gist options
  • Select an option

  • Save KristianLyng/282768 to your computer and use it in GitHub Desktop.

Select an option

Save KristianLyng/282768 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int mprint(char *s) {
return ((*s ? mprint((s+1)):0) ? putchar (*s) : 1);
}
int main() {
mprint("reverse my string!");
return putchar('\n');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment