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