How to define multiple characters using macros??
I want to declare all the hexadecimal digits under a name "hexa". Does anyone know it how to do that??
The below code is wrong! Any suggestions to make it correct??
#define hexa 'A','B','C','D','E','F','0','1','2','3','4','5','6','7','8','9'
#include<stdio.h>
int main()
{
char a;
printf("Enter a character= ");
scanf("%c",a);
if(a==hexa)
printf("hexadecimal");
return 0;
}