What is islower() in C?
islower() is a C library function. It checks whether the character passed as a parameter to it is a lowercase letter or not.
Library
#include<ctype.h>
Syntax
Following is the declaration of islower():
int islower(int ch);
where ch is the character to be checked.
The return type of the function is int. If the letter passed to the function is a lowercase letter, the function returns a non-zero value. Otherwise, the function returns zero.
Alternative approach
An alternative approach (without using islower()) to check whether a character is a lowercase letter or not, is to check if the character lies between 97 and 122 inclusive. If the character lies between 97 and 122 inclusive, it is a lowercase letter. Otherwise, it is not. This is shown in the diagram below:
ASCII values of lowercase letters
Code
1. With islower()
#include<stdio.h>#include<ctype.h>int main() {char str[] = {'q', '!', '2', 'M'};int i = 0;while (i < 4) {int returnValue = islower(str[i]);if (returnValue > 0)printf("%c is a lowercase letter.\n", str[i]);elseprintf("%c is not a lowercase letter.\n", str[i]);++i;}return 0;}
2. Without islower()
#include<stdio.h>#include<ctype.h>int main() {char str[] = {'q', '!', '2', 'M'};int i = 0;while (i < 4) {if (str[i] >= 97 && str[i] <= 122)printf("%c is a lowercase letter.\n", str[i]);elseprintf("%c is not a lowercase letter.\n", str[i]);++i;}return 0;}
Free Resources
Copyright ©2026 Educative, Inc. All rights reserved