Special characters:
All Character except the english alphabet and numbers are the special characters.
Example-
! # $ % ^ & * ( ) etc.
How we identify?
-We use te ASCII value concept to identify each and every character of the keyword.
program-
#include < stdio.h>
int main()
{
char ch;
printf("Enter any character\n");
scanf("%c",&ch);
if((ch>='A' && ch<='Z') | (ch>='a' && ch<='z') | (ch>='0' && ch<='9'))
{
printf("It is not a special character");
}
else
{
printf("It is a special character");
}
return 0;
}
Enter any character
A
It is not a special character
Enter any character
3
It is not a special character
Enter any character
$
It is a special character