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 / fazlur rahaman naik

The main 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 ?    168 Yes 35 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a char c?

1089


What does volatile do?

1040


What is pivot in c?

1079


What is abstract data structure in c?

1111


How can you pass an array to a function by value?

1179


What is structure padding and packing in c?

1125


Explain the difference between strcpy() and memcpy() function?

1065


Why does the call char scanf work?

1261


How #define works?

1162


How does normalization of huge pointer works?

1231


differentiate built-in functions and user – defined functions.

1149


Explain what is the general form of a c program?

1148


Differentiate between a for loop and a while loop? What are it uses?

1239


What are the standard predefined macros?

1205


Explain the ternary tree?

1079