In this example, you will learn to check whether a character entered by the user is an alphabet or not.
printf("Enter a character: ");
if( (c>='a' && c<='z') || (c>='A' && c<='Z'))
printf("%c is an alphabet.",c);
printf("%c is not an alphabet.",c);
Enter a character: *
* is not an alphabet