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?
int i = -1, &r = 0;
const int i = -1, &r = 0;
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?
int i = -1, &r = 0;
const int i = -1, &r = 0;
Copyright © 2012 Hot Stack Overflow Question . All rights reserved.
Super SEO | Published By Gooyaabi Templates