#include<stdio.h>
main()
{
int a=1;
switch(a)
{
case isdigit('1'):printf("Hello");
}
}
This code works fine Hello is printed
#include<stdio.h>
main()
{
int a=1;
switch(a)
{
case isalpha('a'):printf("Hello");
}
}
But this code gives an error
It says case label does not reduce to an integer