newbie question: Null pointer

B

Barry Schwarz

that means memory pointed to by the NULL pointer is a valid location
in the process address space, but it is not pointing to any valid
object ?

No it does not. There is no requirement for value that represents a
NULL pointer to be a valid memory address.
could you please give me some hints about what happens in runnable program ?
what happens internally ?

Implementation details are not covered by the standard. The best you
can say is that the generated code will cause the pointer to have a
value which will compare equal to any other NULL pointer and to the
NULL pointer constant (when used with == but not necessarily with
memcmp).


<<Remove the del for email>>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,371
Latest member
Brkaa

Latest Threads

Top