![]() |
VOOZH | about |
The tolower() function in C++ is used to convert an uppercase alphabet character into its lowercase equivalent. It is a predefined function available in the <cctype> header file.
Example: Convert Single Character to Lowercase
G in lowercase is represented as = g
int tolower(int ch);
Parameter:
Return Value:
Header File:
#include <cctype>
Example: Convert String to Lowercase
geeksforgeeks
Note: If the character passed in the tolower() is any of these three
- lowercase character
- special symbol
- digit
tolower() will return the character as it is.
Example: Lowercase Conversion with Digits and Symbols
geeks@123