|
Assuming that myField_P is the based of myField, does these two statements yield same result? Statement 1 ==> dealloc myField_P; Statement 2 ==> myField_P = *null;
No. The first statement releases memory so that it's available for other programs to use for other purposes.
The second statement sets a pointer to null (so that it no longer points to a valid space in memory.)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.