what is the different between if-else and switch statment
(other than syntax)

Answer Posted / kuldeep sadhu

actually if else is a cndition checking system but the
switch is a selection of user typed type......
& secondly switch does not check all cases but jump directly
on the user interested case but if checkes all.............

Is This Answer Correct ?    61 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

7801


Why enum is used in c?

733


What is a good data structure to use for storing lines of text?

865


What is const keyword in c?

979


Write a program to find factorial of a number using recursive function.

891


What are pointers really good for, anyway?

841


What is a lookup table in c?

858


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

2817


Explain what is the concatenation operator?

880


Is flag a keyword in c?

958


What is the significance of scope resolution operator?

1157


ATM machine and railway reservation class/object diagram

5041


What is meant by realloc()?

935


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

868


What is meant by preprocessor in c?

768