Learning C
C Function References
C Useful Resources
Selected Reading
© 2011 TutorialsPoint.COM
|
C - isupper function
Synopsis:
#include <stdio.h>
int isupper(int c);
|
Description:
The function returns nonzero if c is any of:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
|
Return Value
The function returns nonzero if c is upper case otherwise this will return zero which will be equivalent to false.
Example
#include <stdio.h>
int main() {
if( isupper( 'a' ) )
{
printf( "Character a is upper case\n" );
}
if( isupper( 'A' ) )
{
printf( "Character A is upper case\n" );
}
return 0;
}
|
It will proiduce following result:
Character A is upper case
|
|
|
|
|