title: c++ pointer declaration and assignment
body: <pre><code>int num1 = 8;   //okay
  int *pointer;   //okay
  *pointer = &amp;num1;   //NOT okay, compiler says (Error:a value of type int* cannot be
                      //assigned to an entity of type "int")
  
  int num2 = 8;   //okay
  int *pointer = &amp;num2;   //okay
  </code></pre>
  
  <p>I am confused why the first part gives an error and the 2nd part doesnt, they look the same to me</p>