title: How to modify value of const variable?
body: <p>I am able to change the value of <code>const</code> modified variable in gcc but not in other compilers.
  I have tried this code on gcc, which updates the value of <code>i</code> and <code>j</code> (11). With <a href="http://codepad.org/1rf9jwig" rel="nofollow">an online compiler</a>, I get different values.</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  void main() {
    const int i=10;
    int *j;
    j = &amp;i;
    (*j)++;
    printf("address of j is %p address of i is %p\n",j,&amp;i);
    printf("i is %d and j is %d\n",i,*j);
  }
  </code></pre>