toupper code example
Example 1: toupper c++
int result = toupper(charecterVariable);// return the int that corresponding upper case char
//if there is none then it will return the int for the original input.
//can convert int to char after
char result2 = (char)toupper(variableChar);
Example 2: to upper in c
#include <ctype.h> // For function below
Example 3: toupper c programming
int toupper( int arg );
Example 4: toupper
#include <stdio.h>
#include <ctype.h>
int main() {
char c;
c = 'm';
printf("%c -> %c", c, toupper(c));
c = 'D';
printf("\n%c -> %c", c, toupper(c));
c = '9';
printf("\n%c -> %c", c, toupper(c));
return 0;
}