tolower : <ctype.h> library function

tolower function converts an uppercase character to lowercase character if such value exists for input character. If no such conversion is possible, it returns same character unchanged.

Function prototype of tolower

int tolower(int c);
Function tolower takes a character as input in form of an integer. When we pass a value of type char to tolower() function, corresponding ASCII value of that character is passed.

Return value of tolower

Function tolower returns lowercase equivalent to c, if such value exists, or c (unchanged) otherwise.

C program to show the use of tolower function

The following program does uppercase to lowercase alphabet conversion using tolower() function.

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

int main(){
    char string[] = "";
    int index = 0;
    while(string[index] != '\0'){
        printf("%c", tolower(string[index]));
    return 0;

Program Output