C isgraph function

« Previous

Synopsis:

Example

#include <stdio.h>

int isgraph(int c); 

Description:

The function returns nonzero if c is any character for which either isalnum or ispunct returns nonzero.

Return Value

The function returns nonzero if c is any character for which either isalnum or ispunct returns nonzero.

Example

Example

#include <stdio.h>

int main() {

  if( isgraph( '9' ) )
  {
     printf( "Character 9 is a graph\n" );
  }
  if( isgraph( 'A' ) )
  {
     printf( "Character A is graph\n" );
  }
  return 0;
}

Output Will Be :

Output

Character 9 is a graph
Character A is graph


« Previous
Have Any Suggestion? We Are Waiting To Hear from YOU!

Your Query was successfully sent!