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

Define pointers?

1039


What are the 3 levels of programming languages?

1041


Which coding certification is best?

1021


What are the comments in c++?

983


Array base access faster or pointer base access is faster?

2296


What is a template in c++?

1839


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

991


write a function signature with various number of parameters.

1037


Difference between pointer to constant and constant pointer to a constant. Give example.

1114


A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

3673


What is the outcome of cout< a) 16 b) 17 c) 16.5

1015


What is switch case in c++ syntax?

1112


Is atoi safe?

1049


What is null pointer and void pointer and what is their use?

1096


What is the fastest c++ compiler?

1101