title: Does const apply to all parameters passed into a function?
body: <p>Given the following:</p>
  
  <pre><code>void abc(const int*, int*);
  int x = 1;
  int y = 2
  abc(&amp;x, &amp;y);
  </code></pre>
  
  <p>Without knowing the definition of abc(), is there anyway of knowing what the values of x and y are after line 3 is executed?</p>
  
  <p>This is what I believe to be true inside abc(),</p>
  
  <p>x is a constant pointer that points to an int, therefore the value that is pointed to cannot change but the address that x points to CAN be changed.
  Is that correct?</p>
  
  <p>Also, does the const in the function header apply to only the first parameter? or does it apply to both?</p>