title: What are the advantages of using nullptr?
body: <p>This piece of code <em>conceptually</em> does the same thing for the three pointers (safe pointer initialization):</p>
  
  <pre><code>int* p1 = nullptr;
  int* p2 = NULL;
  int* p3 = 0;
  </code></pre>
  
  <p>And so, what are the advantages of assigning pointers <code>nullptr</code> over assigning them the values <code>NULL</code> or <code>0</code>?</p>