isascii function

Share it Please
isascii function is used to determine weather entered character is ASCII character or not. Let us see example for it.

Example:

#include<stdio.h>
#include<conio.h>
#include<ctype.h>
main()
{
        char ch;
        clrscr();
        printf("Enter any character: ");
        scanf("%c",&ch);
        if(isascii(ch))
        {
                printf("\nThis character is ASCII character");
        }
        else
        {
                printf("\nThis character is not an ASCII character");
        }
        getch();

}