codescracker


c

C islower()



« Previous Chapter Next Function »


islower()

The islower() function returns non-zero if ch is a lowercase letter; otherwise zero is returned.

islower() Syntax

Following is the syntax of the islower() function :

#include<ctype.h>
int islower(int ch);

islower() Example

Following program checks each character read from stdin and reports all lowercase letters :

#include<ctype.h>
#include<stdio.h>
#include<conio.h>
void main()
{
	clrscr();
	char ch;
	for(; ;)
	{
		ch = getchar();
		if(ch == '.')
			break;
		if(islower(ch))
			printf("%c is lowercase\n", ch);
	}
	getch();
}

« Previous Chapter Next Function »



Tools
Calculator

Quick Links
Signup - Login - Give Online Test