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
Simplify the program segment if X = B then C ← true else C ← false
can anyone suggest some site name..where i can get some good data structure puzzles???
What is the description for syntax errors?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
Is c weakly typed?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
What is character set?
How to explain the final year project as a fresher please answer with sample project
what is different between auto and local static? why should we use local static?
Explain the difference between malloc() and calloc() function?
What the different types of arrays in c?
How do I determine whether a character is numeric, alphabetic, and so on?
What is return in c programming?
What is the difference between constant pointer and constant variable?
Tell us bitwise shift operators?