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 / nilesh dinakr

In IF STATEMENT, we can build the logical conditin i.e.
usinf realtional operator but in SWITCH, we can use the
expression which yield int or char value but not float.
char value will be auoto typecast to int. shortly , switch
works only one int

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a code to generate divisors of an integer?

1011


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

2205


In which header file is the null macro defined?

1304


What is the difference between new and malloc functions?

1055


When should the const modifier be used?

1062


Can a program have two main functions?

1065


Explain what are the advantages and disadvantages of a heap?

1036


Explain spaghetti programming?

1191


please explain every phase in the "SDLC" in the dotnet.

2564


Are there any problems with performing mathematical operations on different variable types?

993


What is null pointer in c?

950


what is the basis for selection of arrays or pointers as data structure in a program

4252


What is the difference between far and near in c?

999


what are bit fields? What is the use of bit fields in a structure declaration?

2052


What do you mean by invalid pointer arithmetic?

1006