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

int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1934


What is sorting in c plus plus?

1028


Difference between Function to pointer and pointer to function

1130


What do you mean by recursion in c?

1170


Is it possible to use curly brackets ({}) to enclose single line code in c program?

1381


What does double pointer mean in c?

1263


What is structure and union in c?

1209


write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.

2047


What is the best way of making my program efficient?

1087


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

3151


When should a type cast not be used?

1110


Explain what math functions are available for integers? For floating point?

1164


What is an auto keyword in c?

1150


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

1238


string reverse using recursion

2537