Check out example codes for "how to compare lower case character to uppercase cpp". It will help you in understanding the concepts better.

Code Example 1

for(int i=0;i<str.size();i++){
int c = str[i]; 
        if (islower(c))  
            str[i] = toupper(c);
}

Learn ReactJs, React Native from akashmittal.com