33,311
社区成员
发帖
与我相关
我的任务
分享
int i;
const int ci=0;
const int &j=i; //ok;convert non-const to reference to const int
const int *p=&ci; //ok;convert address of non-const to address of a const
const int ci[2]={0,1};
const int *p =ci;
cout<<*p<<endl;
p++;
cout<<*p<<endl;
system("pause"); //结果显示了0和1