Showing posts with label islower(). Show all posts
Showing posts with label islower(). Show all posts

Monday, March 1, 2021

, , , ,

Example program for islower() function in c

 The islower() function in c checks  that the given character is lowercase alphabet (a-z) or not.

Syntax :- 

int islower( int arg );

 islower() function takes a single argument in the form of  integer and return the value of integer type.

Return Value islower() function in c : -


  • Non-zero number (x > 0)  it means given Argument is a lowercase alphabet.
  • Zero (0) then given Argument is not a lowercase alphabet.


Example for C islower() function in c


#include <stdio.h>
#include <ctype.h>

int main()
{
    char c;

    c='t';
    printf("Return value when %c is passed to islower(): %d", c, islower(c));

    c='D';
    printf("\nReturn value when %c is passed to islower(): %d", c, islower(c));

    return 0;
}

Output

Return value when t is passed to islower(): 2 Return value when D is passed to is islower(): 0