Rose
-2
Q:

is upper c++

if (isupper(str[i])) {
	// str[i] is uppercase
}
0
// Program to check if a character is in  
// uppercase using isupper() 
#include <iostream> 
#include <cctype> 
using namespace std; 
int main() 
{ 
    char x; 
    cin >> x; 
    if (isupper(x))  
        cout << "Uppercase"; 
    else 
        cout << "Not uppercase.";     
    return 0; 
} 
0

New to Communities?

Join the community