title: Why is an exception thrown (read access violation) when I cout a NULL pointer?
body: <p>As NULL pointer assigns zero to its value.</p>
  
  <ol>
  <li><p>When I try to cout a null pointer it throws an exception, why is that? It is not outputting zero.</p></li>
  <li><p>does the value zero have any address?</p></li>
  </ol>
  
  <p>Example code :</p>
  
  <pre class="lang-cpp prettyprint-override"><code>int main()
  {
      int *q = NULL;
      cout &lt;&lt; *q;
      return 0;
  }
  </code></pre>