function to convert a char to lowercase in c++ code example Example: convert characters to lowercase c++ str[i] = tolower(str[i]);