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

Give 2 examples of a code optimization?

Answer Posted / mms zubeir

I would like to quote two things from the same area.

1. Read/Write chunks from/into a file instead of byte by
byte reading.

2. Aquire resources late and relieve it early. Example, if
you want to use a file, open the file as late as possible
and release it as early as possible after use.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how the virtual base class is different from the conventional base classes of the opps.

1145


Is it possible to use a new for the reallocation of pointers ?

1042


Is there finally in c++?

1088


How can I disable the "echo" feature?

1155


What problems might the following macro bring to the application?

1032


Does there exist any other function which can be used to convert an integer or a float to a string?

1068


What is setfill c++?

1141


What is the operator in c++?

1112


Is c++ free?

1087


What is the use of register keyword with the variables?

929


To which numbering system can the binary number 1101100100111100 be easily converted to?

1049


Should I learn c++ c?

1035


Explain rethrowing exceptions with an example?

1008


What are built-in functions? What is the syntax for the definition?

1064


What is std :: endl?

1018