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
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
What do you mean by keywords in c?
Difference between macros and inline functions? Can a function be forced as inline?
What is malloc() function?
what is the format specifier for printing a pointer value?
How can I split up a string into whitespace-separated fields?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
What is a program flowchart?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
Does c have class?
What is define c?
What is getch () for?
Tell me what is the purpose of 'register' keyword in c language?
Explain the difference between strcpy() and memcpy() function?
What are the characteristics of arrays in c?