Integer type (typically 4 bytes, -2,147,483,648 to 2,147,483,647)
1st Parameter
The character to be converted to lowercase. This is passed as an `int` to allow handling of `EOF` or extended character values.
Read more about parameters of tolower in parameters section
The tolowerfunction in C language Converts a character to lowercase.
The tolower function converts an uppercase letter to the corresponding lowercase letter. If the argument is not an uppercase letter, it is returned unchanged. This function is commonly used for case-insensitive string comparisons or to ensure consistent casing in text processing.
The tolowerfunction takes 1
parameter:
•
int `c`: The character to be converted to lowercase. This is passed as an `int` to allow handling of `EOF` or extended character values.
Converts the given character `c` to its lowercase equivalent if it is an uppercase letter. If `c` is not an uppercase letter, the function returns `c` unchanged. The behavior is undefined if `c` is not representable as an `unsigned char` and is not equal to `EOF`.
The tolower function return value :
If c is an uppercase letter, returns the corresponding lowercase letter
Otherwise, it returns c unchanged
Output
This example demonstrates tolower on both uppercase and lowercase letters.