title: Warning: initialization makes pointer from integer without a cast(integer pointers)
body: <p>I have this code trying out pointer with integers and there is a warning of initialization makes pointer from integer without a cast while compiling it.
  Also, it seems that after compilation the .exe file will not run properly. Please help! </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int
  main(int argc, char* argv[]) {
      int num1=10, *num2=1;
      printf("num1=%d \t num2=%d \n", num1, *num2);
      *num2 = num1;
      printf("num1=%d \t num2=%d \n", num1, *num2);
  
      return 0;
  }
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/laszC.png" rel="nofollow">Error message</a></p>