- ctype means characters type.
- Use of this functions is know which type of characters
isdigit()
, isalpha()
, isupper()
, islower()
, spunct()
.
isdigit()
- Used to check is character is numeric digit or not.
- Syntax :
int isdigit(c);
here c is a variable or constant. - Returns : True – Non-zero, false – Zero.
isalpha()
- Used to check is character is alphabet or not.
- Syntax :
int isalpha(c);
here c is a variable or constant. - Returns : True – Non-zero, false – Zero.
isupper()
- Used to check is character is upper or not.
- Syntax :
int isupper(c);
here c is a variable or constant. - Returns : True – Non-zero, false – Zero.
islower()
- Used to check is character is lower or not.
- Syntax :
int lower(c);
here c is a variable or constant. - Returns : True – Non-zero, false – Zero.
ispunct()
- Used to check is character is punctuation or not.
- Syntax :
int ispunct(c);
here c is a variable or constant. - Returns : True – Non-zero, false – Zero.
Hits (since 2024-Jan-26) - 802
Explore more