C plus plus programming
June 3, 2026 1 min read

Character data types and functions in c plus plus

HS
HEMANT SINGH
Technical Writer & Educator

cctype: c character type

Declare a character variable

char a='A';

  • isalpha() : Return true if the character is an alphabet, otherwise false.
  • isdigit(): Return true if the character is digit, otherwise false. 
  • islower(): Return true if the character is in lower case, otherwise false.
  • isupper(): Return true if the character is in upper case, otherwise false.
  • isspace(): Return true if the character is a space, otherwise false.
  • tolower(): Convert a character into the lowercase letter.
  • toupper(): Convert a character into the uppercase letter.

In this category