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 are the features of the c language?

1045


Why do we need volatile in c?

1125


What are the advantages of using Unions?

1077


i have a written test for microland please give me test pattern

2681


What is extern c used for?

1014


Differentiate between a structure and a union.

1237


which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

2019


Explain what standard functions are available to manipulate strings?

1034


What does c mean in standard form?

1113


Can static variables be declared in a header file?

1022


Can i use “int” data type to store the value 32768? Why?

1152


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1045


What is structure in c language?

1113


what is the height of tree if leaf node is at level 3. please explain

2102


how to write a c program to print list of fruits in alpabetical order?

2249