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
How can you restore a redirected standard stream?
Explain data types & how many data types supported by c?
What is dynamic dispatch in c++?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
Write a C program in Fibonacci series.
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
Do pointers need to be initialized?
Which is best linux os?
How will you find a duplicate number in a array without negating the nos ?
Explain pointers in c programming?
Write a program to find factorial of a number using recursive function.
Are there constructors in c?
cavium networks written test pattern ..
What are loops c?