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

in switch case we can tell the compiler that you can go
based on user choice
where as in if-else we can test the initial cond then we can
deside

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can use subset in c program and give more example

1997


How can I find out how much free space is available on disk?

1058


Why void main is used in c?

1053


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

3179


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

2531


When should the register modifier be used? Does it really help?

970


How do I get a null pointer in my programs?

1116


Explain bitwise shift operators?

1253


The statement, int(*x[]) () what does in indicate?

1151


When can a far pointer be used?

1031


What is array of structure in c programming?

1292


What is logical error?

1129


hi, which software companys will take,if d candidate's % is jst 55%?

2093


What is #include called?

1065


Write a program to generate the Fibinocci Series

1243