title: const usage with pointers in C
body: <p>I am going over C and have a question regarding <code>const</code> usage with pointers.  I understand the following code:</p>
  
  <pre><code>const char *someArray
  </code></pre>
  
  <p>This is defining a pointer that points to types of char and the <code>const</code> modifier means that the values stored in <code>someArray</code> cannot be changed.  However, what does the following mean?</p>
  
  <pre><code>char * const array
  </code></pre>
  
  <p>Is this an alternate way of specifying a parameter that is a char pointer to an array named "array" that is <code>const</code> and cannot be modified? </p>
  
  <p>Lastly, what does this combination mean:</p>
  
  <pre><code>const char * const s2
  </code></pre>
  
  <p>For reference, these are taken from the Deitel C programming book in Chapter 7 and all of these are used as parameters passed to functions.</p>