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