what is the different between if-else and switch statment
(other than syntax)
Answer Posted / chandra
in switch case we can tell the compiler that you can go
based on user choice
where as in if-else we can test the initial cond then we can
deside
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is a 'null pointer assignment' error?
How is null defined in c?
What is the code for 3 questions and answer check in VisualBasic.Net?
What is dangling pointer in c?
What does c in a circle mean?
What is a stream?
What is difference between main and void main?
Why is c called "mother" language?
What is register variable in c language?
What is action and transformation in spark?
#include
Why #include is used in c language?
What is advantage of pointer in c?
What is the use of extern in c?
#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); }