C tolower()

The tolower() function returns the lowercase equivalent of ch if ch is a letter; otherwise ch is returned unchanged.

tolower() Syntax

Following is the syntax of the tolower() function :

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

tolower() Example

Following code fragment displays q :

putchar(tolower('Q'));

C Online Test


« Previous Chapter Next Function »



Like/Share Us on Facebook 😋