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

IF ELSE- First the condition is verified, then it comes to the else part.
SWITCH CASE- First it checks the cases and then it switches to that particular case.
IF ELSE- It implements like binary search.
SWITCH CASE-
It implements binary search.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

1089


What do you mean by keywords in c?

1144


Difference between macros and inline functions? Can a function be forced as inline?

1269


What is malloc() function?

1156


what is the format specifier for printing a pointer value?

1018


How can I split up a string into whitespace-separated fields?

1055


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

1243


What is a program flowchart?

1193


Explain can the sizeof operator be used to tell the size of an array passed to a function?

1068


Does c have class?

1109


What is define c?

1071


What is getch () for?

1228


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

1008


Explain the difference between strcpy() and memcpy() function?

1000


What are the characteristics of arrays in c?

1049