char ch = '1';
if(isdigit(ch))
printf("numeric");
else
printf("alphabet" );
// output: numeric
CCopy
char ch = '/';
if(isalnum(ch))
printf("numeric or ap=lphabet");
else
printf("other symbol" );
//output: other symbol
CCopy