isupper() in C++

isupper(): This function is available in the file ctype.h. This function checks if the given character is an uppercase alphabet or not.

Parameters: One parameter is required for this function.

arg: The character to be checked, cart into an int.

Syntax:

isupper(arg)

For Example:

isupper('A') = > It return true.

Approach

C++

#include <bits/stdc++.h>
using namespace std;

int main()
{
    char ch = 'A';

    cout << isupper(ch<< "\n";

    return 0;
}

No comments:

Post a Comment