#include <cstdlib> #include <iostream> #include <cstdio> using namespace std; void rDisplay(char *str) { if(*str != '/0') rDisplay(str + 1); printf("%.*s", 1, str); } int main(int argc, char *argv[]) { char str[] = {"12345"}; rDisplay(str); system("PAUSE"); return EXIT_SUCCESS; }