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 pointer is different from array?

1072


List some applications of c programming language?

950


What is the role of this pointer?

1069


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

2011


Why structure is used in c?

1186


List some basic data types in c?

1025


Can we access array using pointer in c language?

1083


how to write optimum code to divide a 50 digit number with a 25 digit number??

3267


How many levels of pointers can you have?

1188


When is a “switch” statement preferable over an “if” statement?

1138


What extern c means?

999


Explain about the constants which help in debugging?

1371


Can you tell me how to check whether a linked list is circular?

1406


Explain the priority queues?

1073


How do you declare a variable that will hold string values?

1172