codescracker


c

C isupper()



« Previous Chapter Next Function »


isupper()

The isupper() function returns nonzero if ch is an uppercase letter; otherwise zero is returned.

isupper() Syntax

Following is the syntax of the isupper() function :

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

isupper() Example

Following program checks each character read from stdin and reports all uppercase letters :

#include<ctype.h>
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
char ch;
for(; ;)
{
ch = getchar();
if(ch == '.')
break;
if(isupper(ch))
printf("%c is uppercase\n", ch);
}
getch();
}

« Previous Chapter Next Function »


Latest 5 Posts by CodesCracker




Tools
Calculator

Quick Links
Signup - Login - Give Online Test