View Single Post
Old Mar 22nd, 2006, 5:49 PM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
The important thing to remember is that a pointer value of zero is required to be interpreted by the compiler as NULL, even if the actual value of NULL is not zero in some particular implementation, and that a dereferenced NULL pointer should not access valid memory. At least, that's what my feeble brain is dredging up, right now. We can hope that Grumpy weighs in here, and not the turkey that says, "pointers don't have values." The concept of the NULL pointer is so esoteric that I don't really cover it in great detail in my tutorial.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote