what is the different between if-else and switch statment
(other than syntax)
Answer Posted / sumeet
IF ELSE- First the condition is verified, then it comes to the else part.
SWITCH CASE- First it checks the cases and then it switches to that particular case.
IF ELSE- It implements like binary search.
SWITCH CASE-
It implements binary search.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
What is the difference between arrays and pointers?
How do you list a file’s date and time?
Why main is used in c?
What is unary operator?
Explain what are compound statements?
Does * p ++ increment p or what it points to?
Is c call by value?
What are unions in c?
Why do we need volatile in c?
What is #line?
What is difference between structure and union in c?
Tell me what is null pointer in c?
What is the purpose of macro in C language?
Explain what are the standard predefined macros?