Please note that I'm NOT trying to distinguish between a single digit and a letter (or other character) as done by functions like isalpha() in ctype.h
I'm trying to distinguish between an integer and an alphabet.
The problem is that an alphabet is also treated as an integer in C and I can't think of a way out.
eg: if input is the letter a, it is the same as 'a' which is the integer 97.
And I need to find if 'a' or 97 was the input.
I tried to do this and realised it simply couldn't work.
int a;
scanf("%d", &a);
if( (a>='A' && a<='Z') || (a>='a' && a<='z') )
{
printf("\nAlphabet");
}