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

What are the uses of c++ in the real world?

656


What does std :: flush do?

782


Is it possible for the objects to read and write themselves?

742


What are the 4 types of library?

704


How does c++ structure differ from c++ class?

699






Is dev c++ free?

694


What is the basic of c++?

705


What is data structure in c++?

742


If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?

653


Can a list of string be stored within a two dimensional array?

665


Do class declarations end with a semicolon? Do class method definitions?

720


How does work in c++?

704


Describe private, protected and public?

686


Is c# written in c++?

622


Can we inherit constructor in c++?

670