If I have an integer variable like int a=9 then in the switch case If i write
switch(a)
{
case 4+a: printf("hii");
}
then why is this statement a compile-time error that variables cannot be used inside a case statement why does the compiler not subtitutes the values in place of the variables.
switch(a)
{
case 4+a: printf("hii");
}
then why is this statement a compile-time error that variables cannot be used inside a case statement why does the compiler not subtitutes the values in place of the variables.
Comment