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 why C language is procedural?

766


What is dynamic dispatch in c++?

554


how we can make 3d venturing graphics on outer interface

3998


What does char * * argv mean in c?

621


What is a dynamic array in c?

589






What is the maximum length of an identifier?

663


Can true be a variable name in c?

555


What is openmp in c?

610


What are two dimensional arrays alternatively called as?

654


please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics

2854


What is extern storage class in c?

509


What is the difference between fread and fwrite function?

635


What is a constant?

628


What is ctrl c called?

588


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

1701