Copyright © tutorialspoint.com

# C - tolower function

## Synopsis:

    #include <stdio.h>

    int tolower(int c);

## Description:

The function returns the corresponding lowercase letter if one exists and if isupper(c); otherwise, it returns c.

## Return Value

The function returns the corresponding lowercase letter if one exists and if isupper(c); otherwise, it returns c.

## Example

    #include <stdio.h>

    int main() {

      printf( "Lower case of A is %c\n", tolower('A'));
      printf( "Lower case of 9 is %c\n", tolower('9'));
      printf( "Lower case of g is %c\n", tolower('g'));
      return 0;
    }

It will proiduce following result:

    Lower case of A is a
    Lower case of 9 is 9
    Lower case of g is g

Copyright © tutorialspoint.com