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
Đăng nhận xét