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...

In the following control structure which is faster?
1.Switch
2.If-else
and which consumes more memory?

Answer Posted / abhradeep chatterjee

According to me, switch is faster. cause in nested if-
else, the checking occurs in each step. So, more the
compiler checks, the more it takes time. So switch case is
faster.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi any body pls give me company name interview conduct "c" language only

2289


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

1096


How to delete a node from linked list w/o using collectons?

2784


How do you use a pointer to a function?

1090


What is sizeof array in c?

1062


How do you print an address?

1274


When should you not use a type cast?

1127


Can a pointer be static?

1090


write a program to rearrange the array such way that all even elements should come first and next come odd

2281


What is a substring in c?

1036


Tell me the use of bit field in c language?

1071


What are c preprocessors?

1200


Differentiate between the expression “++a” and “a++”?

1255


Describe wild pointers in c?

1118


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

2255