title: Printing pointer to integer causes segmentation fault. Why?
body: <pre><code>#include&lt;stdio.h&gt;
  main()
  {
      int *num2=20;
      printf("\n\n\n%d",num2);
  }
  </code></pre>
  
  <p>When I run it as it is, it prints <code>20</code>. If I use  <code>*num2</code> it causes segmentation fault. Why?</p>