Programming
Python
R
Java
C
C++
C#
WEB
HTML
CSS
JavaScript
BootStrap4
jQuery
SVG
MORE
Examples1
Python
GO
R
Java
C
C++
C#
Examples2
Python
R
Java
C
C++
C#
HTML
CSS
JavaScript
BootStrap4
jQuery
SVG
Seo Tools
Code Minifier
Code Beautifier
Language Compiler
Misc Tools
File Converter
References
C
C++
Python
Java
PHP
JavaScript
Examples
Python
R
Java
C
C++
C#
HTML
CSS
JavaScript
BootStrap4
jQuery
SVG
Home
About
Contact
JetPack
Multi Themes-->>
Code it ALL
Scroll TOP
toupper() - ctype.h in c - CodeGK
Δ C References
string.h
strcat()
strcmp()
strcpy()
strlen()
math.h
acos()
acosh()
asin()
asinh()
atan()
atan2()
atanh()
cbrt()
ceil()
cos()
cosh()
exp()
fabs()
floor()
hypot()
log()
log10()
pow()
sin()
sinh()
sqrt()
tan()
tanh()
ctype.h
isalnum()
isalpha()
iscntrl()
isdigit()
isgraph()
islower()
isprint()
ispunct()
isspace()
isupper()
isxdigit()
tolower()
toupper()
♦ toupper() - ctype.h
♣ Example1: toupper()
Input:
Run CODE
Reload Code
Copy Code
#include
#include
char main() { char c1 = 'b'; char r1 = toupper(c1); printf("%c\n", r1); char c2 = '6'; char r2 = toupper(c2); printf("%c\n", r2); char c3 = 'p'; char r3 = toupper(c3); printf("%c\n", r3); char c4 = 'A'; char r4 = toupper(c4); printf("%c\n", r4); return 'm'; }
Output: