isupper function >> ctype.h >> header files in c Programming
| Syntax | int isupper (int c) |
| Header File | ctype.h |
| Return Value |
|
Live Example :
void main()
{
char ch = 'A';
if( isupper(ch))
printf("nThis is Uppercase Character");
else
printf("nThis is not an Uppercase Character");
}
Output :
This is Uppercase CharacterExplanation of statement :
if(isupper(ch))- character ch is passed to function isupper
- if ch belongs to the set of Uppercase Characters [A-Z] then it returns non-zero value
- otherwise it returns zero .
Note :
- Positive non-zero value given to if block , will result in TRUE condition
- Zero value given to if block , will result in FALSE condition
Bookmark & Share

