title: using nullptr instead of NULL when mixing C and C++
body: <p>i have a very simple question...</p>
  
  <p>i am using the SDL API which was written in C.  i am using C++.  my compiler supports the keyword nullptr, and I've been reading up on it.  it seems as if it is better to use rather than using the NULL macro.</p>
  
  <p>when I call SDL_SetVideoMode, I assume it returns NULL on failure, so if i do:</p>
  
  <pre><code>SDL_Surface *test = nullptr;
  
  if ((test = SDL_SetVideoMode(params)) == nullptr)
  {
      // to-do code
  }
  </code></pre>
  
  <p>will this accurately check if my optimization on the surface test was successful?</p>