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 / deepak upadhyay

switch statement is more faster and consumes less memory
than if-else statement the reason being that the switch
statement is applied when we have a single variable to
check but in case of if-else different variable may be
checked at the same time.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain what is fifo?

1027


Place the #include statement must be written in the program?

989


What is getche() function?

987


write a program to find the given number is prime or not

4656


What are predefined functions in c?

1022


What is sizeof int?

1049


What is nested structure with example?

1012


What are the characteristics of arrays in c?

992


Explain output of printf("Hello World"-'A'+'B'); ?

1431


What is c definition?

1195


Explain what is a 'locale'?

1016


What are the loops in c?

943


What is the difference between null pointer and wild pointer?

1136


Dont ansi function prototypes render lint obsolete?

1062


Why is c called c not d or e?

1048