#include <iostream>
void print_reversed_lc_letters( constchar *str )
{
if( str != nullptr && *str != 0 )
{
print_reversed_lc_letters(str+1); // do this first
// note that checking for lower case this way is not a good idea:
if( *str >= 'a' && *str <= 'z' ) std::cout << *str;
}
}
int main()
{
constchar str[] = "AbCd EfGh IJkl MNOpqr STUVwxyz!";
print_reversed_lc_letters(str);
}