define switch statement?
Answers were Sorted based on User's Feedback
Answer / abirami
it is used to check the various type of cases in one program.
| Is This Answer Correct ? | 20 Yes | 1 No |
Answer / krishna
Switch statement is a selection statement which is used in a situation where there exists various cases and one needs to jump over to the required statement without executing the precedence statements
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / d.jeswanth
switch statement can be defined as " it can choose a
related option from the multiple options ".it belongs to
control and conditonal statements.
*************thank you************
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / vijay
Its used to select the part of program to the execution
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / amit
A switch statement is a selection statement that lets you
transfer control to different statements within the switch
body depending on the value of the switch expression. The
switch expression must evaluate to an integral or enumeration
value.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / amit
A switch statement is a selection statement that lets you
transfer control to different statements within the switch
body depending on the value of the switch expression. The
switch expression must evaluate to an integral or enumeration
value.
| Is This Answer Correct ? | 0 Yes | 0 No |
/*program to calculate hra,da in salary if salary less than 10000 then hra15%,da13% otherwise hra20%,da18%/*
O,T,T,F,F,S,S,E,N,?,?,?,T,F,F,S,S,E,N
how to estimate the disk access time? e.g. the time between read one byte and another byte in the disk.
Write a C program that computes the value ex by using the formula ex =1+x/1!+x2/2!+x3+3!+………….
What is difference between array and structure in c?
main() { int a; a=++100; printf("%d",a); getch(); }
If fflush wont work, what can I use to flush input?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
Which is better malloc or calloc?
write a program to swap two variables a=5 , b= 10 without using third variable
What is malloc return c?
Explain how do you declare an array that will hold more than 64kb of data?