isupper Function

  • t test the given character, whether it is an upper case character (A to Z)
  • It returns nonzero if ch is an uppercase letter; otherwise zero is returned.

  • Syntax :
    int isupper(int ch);

    Example

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

    Output




    Change the example accordingly and find out the outputs for differnet datatypes !!