Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What does void main () mean?

1181


What is a ternary operator in c?

1060


Why do we use static in c?

1071


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1587


What is const volatile variable in c?

986


What is the process of writing the null pointer?

984


How can I change the size of the dynamically allocated array?

1098


Explain how can I convert a number to a string?

1103


What is the use of gets and puts?

976


Is there a way to switch on strings?

1030


How are Structure passing and returning implemented by the complier?

1109


What is file in c language?

966


What is a constant?

997


Can we declare a function inside a function in c?

991


If the size of int data type is two bytes, what is the range of signed int data type?

977