To write good program how to decide efficiency.
How to work with memory can someone give advice?
To write good program how to decide efficiency.
How to work with memory can someone give advice?
Err..please be a bit more clear when asking something.
How To Ask Questions The Smart Way
Generally the only rule about using memory is that what you allocate, you must deallocate....(and using standard containers avoid most of that)
Some principles are RAII are widely used....but it seems a little 'wooly' to me !
You'll have to first figure out what you mean by efficiency - time efficiency, space efficiency, energy efficiency, development cost efficiency, or any other number of competing measures.