Write a program to accept a character and determine whether it is an alphabet, character or special symbol
/********* Program **********/
#include<stdio.h>
#include<ctype.h>
main()
{
char ch;
printf(“Enter character to test :”);
scanf(” %c”,&ch);
if(isalpha(ch)) //is alpha available in ctype.h
{
printf(“%c is alphabet..n”,ch);
}
else if(isdigit(ch))
{
printf(“%c is Digit..n”,ch);
}
else
{
printf(“%c is special symbol..n “,ch);
}
}