title: C++ Is it possible to determine whether a pointer points to a valid object?
body: <p>I'm learning C++ and reading C++ Primer. There's a question I would like to know the answer:</p>
  
  <p>Given a pointer <em>p</em>, can you determine whether <em>p</em> points to a valid object? If so, how? If not, why not?</p>