main()
{
float
i=1.5;
switch(i)
{
case 1: printf("1");
case
2: printf("2");
default
: printf("0");
}
}
Answer:
Compiler Error: switch
expression not integral
Explanation:
Switch
statements can be applied only to integral types.
Blog Author: Vijay Kumar
No comments:
Post a Comment