title: Difference in implementation of datatype& const var_name in Visual Studio and others
body: <pre><code>void function(int &amp; const a){
    a=4;
  }
  </code></pre>
  
  <p>The above snippet works fine in Visual Studio but fails in DevC++ and other IDEs , </p>
  
  <p>error msg : <code>'const' qualifiers cannot be applied to 'int&amp;'</code></p>
  
  <p>It makes sense that we are initializing constant pointer to an int. If we need to mention the value to constant pointer while initializing it still doesn't work but works fine in Visual Studio</p>
  
  <pre><code>main(){
    int a=10;
    int &amp; const p_a=&amp;a; //works in Visual Studio
    cout&lt;&lt;p_a&lt;&lt;endl;
  } 
  </code></pre>
  
  <p>Explanation regarding the constraint and way to resolve it would be helpful</p>