C++ cctype header - C++ Standard Library

Stop copy pasting code you don't actually understand

Build the coding confidence you need to become a developer companies will fight for

Stop copy pasting code you don't actually understand

Start FREE Trial Start FREE Trial

Start FREE Trial Start FREE Trial

Stop copy pasting code you don't actually understand

Build the coding confidence you need to become a developer companies will fight for

Stop copy pasting code you don't actually understand

Start FREE Trial Start FREE Trial

Start FREE Trial Start FREE Trial

Python JavaScript TypeScript SQL HTML CSS C C++ Java R Ruby RUST Golang Kotlin Swift C# DSA

Learn

Practice

Compete

Certification Courses

Created with over a decade of experience and thousands of feedback.

Python

JavaScript

TypeScript

SQL

HTML

CSS

C

C++

Java

More languages

Python

JavaScript

C

C++

Java

R

Kotlin

The C++ <cctype> header file declares a set of functions to classify (and transform) individual characters. For example, isupper() checks whether a character is uppercase or not.

C++ isalpha()

checks if given character is alphabet or not

C++ isblank()

checks if given character is a blank character

C++ isdigit()

Checks if given character is a digit or not

C++ islower()

checks if given character is lowercase

C++ ispunct()

check if given character is punctuation character

C++ isspace()

check if given character is whitespace character

C++ isupper()

check if given character is uppercase or not

C++ isxdigit()

checks if given character is hexadecimal character

C++ tolower()

Converts a given character to lowercase

C++ toupper()

Converts a given character to uppercase