I want to write a C program to test whether the character is uppercase, lowercase, digit or special symbol.
void main ()
{
char ch;
printf("\n Enter any character from the keyborad");
scanf("%c",&ch);
if (ch>=65&&ch<=90)
printf(" \n the character is uppercase);
if(ch>=91&&ch>=122)
printf(" \n the character is lowercase);
if(ch>=48&&ch<=57)
printf("\n You entered a digit );
}
My question how to print whether the character is a special symbol. I don't know this. Please can anyone point out.
Thanks