C ++ isupper () - C ++ standaardbibliotheek

De functie isupper () in C ++ controleert of het gegeven teken een hoofdletter is of niet.

isupper () Prototype

 int isupper (int ch);

De isupper()functie controleert of ch in hoofdletters staat, zoals geclassificeerd door de huidige C-locale. Standaard zijn de tekens van A tot Z (ascii-waarde 65 tot 90) hoofdletters.

Het gedrag van isupper()is niet gedefinieerd als de waarde van ch niet kan worden weergegeven als unsigned char of niet gelijk is aan EOF.

Het wordt gedefinieerd in header-bestand "> header-bestand.

isupper () Parameters

ch: het teken dat moet worden gecontroleerd.

isupper () Retourwaarde

De isupper()functie retourneert een waarde die niet nul is als ch in hoofdletters staat, anders nul.

Voorbeeld: hoe isupper () functie werkt

 #include #include #include using namespace std; int main() ( char str() = "This Program Converts ALL UPPERCASE Characters to LOWERCASE"; for (int i=0; i 

When you run the program, the output will be:

 this program converts all uppercase characters to lowercase

Interessante artikelen...