Answers for "how to compare lower case character to uppercase cpp"

C++
3

how to compare lower case character to uppercase cpp

for(int i=0;i<str.size();i++){
int c = str[i]; 
        if (islower(c))  
            str[i] = toupper(c);
}
Posted by: Guest on April-25-2020

Code answers related to "how to compare lower case character to uppercase cpp"

Browse Popular Code Answers by Language