Professional Documents
Culture Documents
C Tolower - C Standard Library
C Tolower - C Standard Library
C Tolower - C Standard Library
C tolower()
The tolower() function takes an uppercase alphabet and
convert it to a lowercase character.
1 of 2 9/9/2022, 10:19 PM
Firefox https://www.programiz.com/c-programming/library-function/ctype.h/to...
#include <stdio.h>
#include <ctype.h>
int main()
{
char c, result;
c = 'M';
result = tolower(c);
printf("tolower(%c) = %c\n", c, result);
c = 'm';
result = tolower(c);
printf("tolower(%c) = %c\n", c, result);
c = '+';
result = tolower(c);
printf("tolower(%c) = %c\n", c, result);
return 0;
}
Output
2 of 2 9/9/2022, 10:19 PM