isblank Function

  • It test the given character, whether it is a blank charecter (space and horizontal tab).
  • It returns nonzero if ch is blank. By default, the blank characters are space and horizontal tab.

  • Syntax :
    int isblank(int ch);

    Example

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

    Output




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