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 / vikky

expressions cannot be used as arguments in switsh, but in
if else any kind of exp can be used...
in the case of checkin a single variable for several values
SWITCH is the BEST.
in all other cases if else holds gud.

Is This Answer Correct ?    36 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a function argument have default value?

1141


What's the right way to use errno?

1135


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

1065


What are the rules for identifiers in c?

1064


What is difference between structure and union?

1124


How can you check to see whether a symbol is defined?

1098


What is the time and space complexities of merge sort and when is it preferred over quick sort?

1071


What is function prototype?

1131


What is the process to generate random numbers in c programming language?

1169


How many bytes is a struct in c?

1162


What are # preprocessor operator in c?

1102


Is c dynamically typed?

1150


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

2092


Ow can I insert or delete a line (or record) in the middle of a file?

998


What are compound statements?

1170