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 the use of parallelize in spark?
What is linear search?
Why is main function so important?
What is null character in c?
What is #include stdio h?
What is the condition that is applied with ?: Operator?
i want to know the procedure of qualcomm for getting a job through offcampus
What is wrong in this statement?
Why isnt there a numbered, multi-level break statement to break out
How many levels of pointers can you have?
Do you know the use of fflush() function?
What is meant by high-order and low-order bytes?
What are identifiers c?
Define Spanning-Tree Protocol (STP)
Why isn't any of this standardized in c? Any real program has to do some of these things.