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
Why do we need volatile in c?
how can use subset in c program and give more example
What is c variable?
What are local variables c?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
What does calloc stand for?
What is bin sh c?
Explain how do you sort filenames in a directory?
Is python a c language?
Can we change the value of constant variable in c?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
What is binary tree in c?
Which built-in library function can be used to match a patter from the string?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers