C toupper function

« Previous

Synopsis:

Example

#include <stdio.h>
int toupper(int c); 

Description:

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

Return Value

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

Example

Example

#include <stdio.h>
int main() {
  printf( "Upper case of A is %c\n", toupper('A'));
  printf( "Upper case of 9 is %c\n", toupper('9'));
  printf( UpperLower case of g is %c\n", toupper('g'));
  return 0;
}

Output Will Be :

Output

Lower case of A is A
Lower case of 9 is 9
Lower case of g is G


« Previous
Have Any Suggestion? We Are Waiting To Hear from YOU!

Your Query was successfully sent!