why the first statement is illegal while the second is legal?

<p>I'm new to C++. I'm trying to learn the concept of const. Could someone please tell me why the first statement is illegal while the second is legal?</p><pre><br /><code>int i = -1, &r = 0; <br /><br />const int i = -1, &r = 0; <br /></code><br /></pre><br /><h2>Click here view more answers <a href="%20http://stackoverflow.com/questions/34525109/why-the-first-statement-is-illegal-while-the-second-is-legal">http://ift.tt/1ks1Pnb</a></h2>

Nhận xét

Bài đăng phổ biến từ blog này

Align div to bottom of the page in bootstrap

Align elements inside an tag vertically

Javascript is unable to stop page loading