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 / mohemmed bilal

main difference between both statement is that we can only
use switch for one variable eg
switch(x)
{
case 1://do this;
case 2://do this;
case 3://do this;
}
while in if else we can use multiple condition like
if(x==0&&y==0)
{
printf("");
}
else if(x==1&&y==0)
{
printf("");
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is best book for data structures in c?

1093


Explain what is a 'locale'?

1082


Is main a keyword in c?

1138


number of times a digit is present in a number

2039


will u please send me the placement papers to my mail???????????????????

1840


Write a program to print fibonacci series without using recursion?

1140


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.

2529


Tell me what is the purpose of 'register' keyword in c language?

1012


How can I remove the leading spaces from a string?

1170


How to create struct variables?

1111


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

1105


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

1110


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

1085


Explain about C function prototype?

1094


Is Exception handling possible in c language?

2048