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

What is c token?

1064


Explain is it valid to address one element beyond the end of an array?

1209


what is different between auto and local static? why should we use local static?

1124


How is a structure member accessed?

1127


What is difference between function overloading and operator overloading?

1084


What are identifiers c?

1077


Here is a good puzzle: how do you write a program which produces its own source code as output?

1094


What do you mean by dynamic memory allocation in c? What functions are used?

1161


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

1239


Can a variable be both constant and volatile?

1113


can any one provide me the notes of data structure for ignou cs-62 paper

2172


Why is c fast?

1055


Explain what is wrong with this statement? Myname = ?robin?;

1567


Write a program to swap two numbers without using third variable?

1290


How can I make sure that my program is the only one accessing a file?

1261