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
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
Is c high or low level?
how to capitalise first letter of each word in a given string?
What is the purpose of 'register' keyword?
Explain how can you determine the size of an allocated portion of memory?
How can I delete a file?
What do you mean by a local block?
What is assignment operator?
Is javascript written in c?
Explain the use of 'auto' keyword in c programming?
Do you have any idea how to compare array with pointer in c?
What does c mean?
What are the advantages and disadvantages of pointers?
What are bitwise shift operators in c programming?