what is the different between if-else and switch statment
(other than syntax)
Answer Posted / ailyn
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 ? | 6 Yes | 1 No |
Post New Answer View All Answers
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
Why #include is used in c language?
What is a good way to implement complex numbers in c?
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?
What are pointers? Why are they used?
Write a code to remove duplicates in a string.
Write a program to swap two numbers without using a temporary variable?
how many errors in c explain deply
What functions are used for dynamic memory allocation in c language?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
How can you convert integers to binary or hexadecimal?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
What is the difference between constant pointer and constant variable?
How is null defined in c?
Function calling procedures? and their differences? Why should one go for Call by Reference?