what is the different between if-else and switch statment
(other than syntax)
Answer Posted / fazlur rahaman naik
The main difference between switch - case and if - else is
we can't compare variables.
in the if - else, first the condition is verified,then it
comes to else whereas in the switch - case first it checks
the cases and then it switches to that particular case.
Is This Answer Correct ? | 168 Yes | 35 No |
Post New Answer View All Answers
What is use of #include in c?
Can you please explain the difference between malloc() and calloc() function?
Define the scope of static variables.
How many data structures are there in c?
What is difference between stdio h and conio h?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
Explain how can I avoid the abort, retry, fail messages?
What does dm mean sexually?
What are disadvantages of C language.
Write a c program to build a heap method using Pointer to function and pointer to structure ?
Is c still used?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
What is maximum size of array in c?
How to delete a node from linked list w/o using collectons?
Explain the concept and use of type void.