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

Answer Posted / sherin

There are some things that you simply cannot do with a
switch. These are:
A float expression cannot be tested using a switch
Cases can never have variable expressions (for example it is
wrong to say case a +3 : )
Multiple cases cannot use same expressions.

Is This Answer Correct ?    17 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between null pointer and void pointer.

880


What is %g in c?

866


to find the closest pair

2106


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

941


Which is best linux os?

805


Why c is called top down?

895


Explain the concept and use of type void.

893


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5740


How to declare pointer variables?

944


What is echo in c programming?

790


Is malloc memset faster than calloc?

835


what type of questions arrive in interview over c programming?

1809


Differentiate Source Codes from Object Codes

1210


What is the return type of sizeof?

844


Define the scope of static variables.

868