Friday, 2 December 2011

Example for Function of isalpha

# include <stdio.h>
# include <conio.h>
# include <ctype.h>
main ()
{
     int x;
     printf ("Press enter, spaces or tabs to quit \ n");
     do
     {
          x = getche ();
          if (isspace (x))
          break;
          if (isalpha (x))
          printf ("is the letter \ n");
          else
          printf ("not the letter \ n");
     }
     while (1);
}

No comments:

Post a Comment