codescracker


c

C toupper()



« Previous Chapter C Tutorial »


toupper()

The toupper() function returns the uppercase equivalent of ch if ch is a letter; otherwise ch is returned unchanged.

toupper() Syntax

Following is the syntax of the toupper() function :

#include<ctype.h>
int toupper(int ch);

toupper() Example

Following code displays A :

putchar(toupper('a'));

« Previous Chapter C Tutorial »



Tools
Calculator

Quick Links
Signup - Login - Give Online Test