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

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 ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

2086


Why #include is used in c language?

1040


What is a good way to implement complex numbers in c?

1044


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1198


What are pointers? Why are they used?

1174


Write a code to remove duplicates in a string.

1019


Write a program to swap two numbers without using a temporary variable?

1116


how many errors in c explain deply

2081


What functions are used for dynamic memory allocation in c language?

1140


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

1228


How can you convert integers to binary or hexadecimal?

1022


any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above

1109


What is the difference between constant pointer and constant variable?

1217


How is null defined in c?

1150


Function calling procedures? and their differences? Why should one go for Call by Reference?

1080