echo '' ;

C Library – ctype.h

  • 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.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from ArunEworld

Subscribe now to keep reading and get access to the full archive.

Continue reading