Null Pointers?? I'm kinda sketchy on the concept and use of them. If anyone knows a link to an existing faq or something to that extent, I'd appreciate it!! Thanks
Null pointers .... hmm ... not really that much to say about that.
The address 0 is per definition not a valid address.
Thus if you have a function that is supposed to return an address it is the typical way the function tells the caller that something went wrong (like malloc does).
It's a 'disaster' if the caller doesn't check the pointer before use.
It's not very informative as to what the problem is, but the meaning is clear.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.