C - String Manipulation Functions, tolower
Tutorials Point


  Learning C
  C Function References
  C Useful Resources
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     About TP     Advertising  

C - tolower function

previous

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


previous Printer Friendly

Advertisements


  

Advertisements



Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements