how to check if a character is uppercase in string in c++ code example Example: check if character in string is uppercase c++ if (isupper(str[i])) { // str[i] is uppercase }