The Pragmatic Programmer: From Journeyman to Master

Exercises

22.

Some C and C++ developers make a point of setting a pointer to NULL after they deallocate the memory it references. Why is this a good idea?

23.

Some Java developers make a point of setting an object variable to NULL after they have finished using the object. Why is this a good idea?

Категории