Table of Content

islower function >> ctype.h >> header files in c Programming



islower function >> ctype.h >> header files in c Programming

Syntax int islower (int c)
Header File ctype.h
Return Value
  • Return non-zero if c is  Lowercase Letter
  • Return zero if c is not Lowercase Letter

Live Example :
void main()
{
char ch = 'a';

if( islower(ch))
printf("nThis is Lowercase Character");
else
printf("nThis is not an Lowercase Character");
}

Output : 
This is Lowercase Character

Explanation of statement : if(islower(ch))

  1. character ch is passed to function islower
  2. if ch belongs to the set of Lowercase Characters [a-z] then it returns non-zero value 
  3. otherwise it returns zero .
Note : 
  1. Positive non-zero value given to if block , will result in TRUE condition
  2. Zero value given to if block , will result in FALSE condition

Bookmark & Share