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 |
What is the memory allocated by the following definition ? int (*x)[10];
What is the output of the below program and how it is? void main() { static int var=5; printf("%d",var--); if(var) main(); }
8 Answers MindFire, TCS, Tech Mahindra,
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
Compare array data type to pointer data type
WHOT IS CHAR?
What is key word in c language?
What is structure of c program?
Explain union. What are its advantages?
How can you find the day of the week given the date?
wht is the difference between KPO and BPO ?
2 Answers Accenture, BPO, HCK, HCL, Infosys,
FIND THE OUTPUT IF THE INPUT IS 5 5.75 void main() { int i=1; float f=2.25; scanf("%d%f",&i,&f); printf("%d %f",,i,f); } ANSWER IS 5 AND 2.25 WHY?
How does memset() work in C?