title: Why constant value change doesn't consider as error?
body: <p>Having to follow code  - </p>
  
  <pre><code>    const int WEEKDAYS = 7;
      const int *pWeekdays = &amp;WEEKDAYS;
      *((int*) pWeekdays) = 9;
      cout &lt;&lt; WEEKDAYS &lt;&lt; endl;
  </code></pre>
  
  <p>it give output <code>7</code>  , that is - the line <code>*((int*) pWeekdays) = 9;</code> had no effect or thrown any errors . </p>
  
  <p>Apparently it's like to do <code>7 = 9</code> so why no errors are being thrown ?</p>