Function name : toupper
Header file : <ctype.h>
Function prototype : int toupper(int ch);
Function : Convert lowercase letters to uppercase letters, not lowercase letters.
Parameters : int ch character to be converted
Return value : Returns the converted character
Program example : Convert lowercase letters to uppercase letters
#include<ctype.h>#include<stdio.h>intmain(){charch1,ch2;printf(inputacharacter:);scanf(%c,&ch1);ch2=toupper(ch1);printf(transform%cto%c .n,ch1,ch2);return0;}
Running results:
inputacharacter:gtransformgtoG.