void put_rev_str_rc(char *s) { // recursive version if (*s) { // if there is a char put_rev_str_rc(s+1); // put trailing chars cout << *s; // then current char } }