C++ program to check uppercase or lowercase string code example
Example 1: check if character in string is uppercase c++
if (isupper(str[i])) {
// str[i] is uppercase
}
Example 2: check lowercase letters c++
char character = 'a'; //0110 0001
if(character & 0x20) {
//is lowercase
}