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
Define circular linked list.
Explain how does free() know explain how much memory to release?
What is a scope resolution operator in c?
What are identifiers c?
Describe the header file and its usage in c programming?
How are pointers declared in c?
Which is better oop or procedural?
List a few unconditional control statement in c.
How do I send escape sequences to control a terminal or other device?
Subtract Two Number Without Using Subtraction Operator
Why can’t we compare structures?
How will you write a code for accessing the length of an array without assigning it to another variable?
How #define works?
What is function prototype in c language?
Explain what is the advantage of a random access file?