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;
}
0 comments:
Post a Comment