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

How can I rethow can I return a sequence of random numbers which dont repeat at all?

1192


What does %p mean c?

1079


What does it mean when a pointer is used in an if statement?

1113


What is the best style for code layout in c?

1102


What is c standard library?

1216


What are terms in math?

1055


Is a pointer a kind of array?

1193


What are high level languages like C and FORTRAN also known as?

1176


How many types of sorting are there in c?

1061


Why is sizeof () an operator and not a function?

1035


What is c system32 taskhostw exe?

1032


What is the difference between single charater constant and string constant?

1096


What is the difference between malloc calloc and realloc in c?

1151


How important is structure in life?

1091


What is the difference between int main and void main?

1052