with the following code I do not get any errors in VS2005
Code:
#include <stdio.h>
int main(void)
{
char a;
printf(" Enter Any Char in Capital or small case or any digit or any number");
scanf("%c",&a);
if((a>=65 && a<=90)||(a>=97 && a<=122))
{
printf("CapsLock"); /* In this Line i get Error "Expression syntax is in function main() */
}
else
printf("Small Case letter");
if((a>='0' && a<= '9'))
printf(" Digit");
if((a>=0 && a<=46 && a>=58 && a<=64 && a>=91 && a<=96 && a>=123 && a<=127)) /* In this line i get warning that " Constant out of range." */
printf("Speical Symbol");
return 0;
}
Are you sure you compiling the code you are posting?