Which of the following cannot be checked in a switch-case statement?

Home | Discussion Forum
Taiyari24Hour

Which of the following cannot be checked in a switch-case statement?



View More Related Question

2) What is the output of this C code(when 1 is entered)?

 #include <stdio.h>
void main()
{
double ch;
printf("enter a value btw 1 to 2:");
scanf("%lf", &ch);
switch (ch)
{
case 1: printf("1");
break;
case 2: printf("2");
break;
}
}

3) A switch statement is used to:

4) Study the following 'C' program

 #include<stdio.h>
void main()
{
int a=7, b=5;
switch (a/a % b)
{
case 1 : a= a-b;
case 2 : a= a+b;
case 3 : a= a*b;
case 4 : a= a/b;
default : a= a;
}
}
On the execution of above program, what will be the value of variable a?

5) Which of the following cannot be checked in a switch-case statement?

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.