title: C pointer syntax
body: <p>What is the difference between these two lines of code?</p>
  
  <pre><code>int *ptr = &amp;x;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>void* q = &amp;x;
  int* p = q;
  </code></pre>
  
  <p>I'm very new to C and the concept of pointers - having been taught primarily in Java - so just a little confused.</p>
  
  <p>Thanks in advance.</p>