how to use is upper() to check whether there is upper letter in string in c++ code example
Example 1: check uppercase c++
char character = 'A'; //0100 0001
if((character & 0x20) == 0) {
//is uppercase
}
Example 2: check if character in string is uppercase c++
if (isupper(str[i])) {
// str[i] is uppercase
}