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
How to delete a node from linked list w/o using collectons?
Why is c so important?
How can my program discover the complete pathname to the executable from which it was invoked?
What does s c mean in text?
Define Array of pointers.
What Is The Difference Between Null And Void Pointer?
which is an algorithm for sorting in a growing Lexicographic order
How many levels of pointers have?
What are local static variables?
What is #define size in c?
Write a program to generate the Fibinocci Series
Are the outer parentheses in return statements really optional?
Is null valid for pointers to functions?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
What is structure packing in c?