Cpp_Primer_Practice icon indicating copy to clipboard operation
Cpp_Primer_Practice copied to clipboard

【bug】练习2.29

Open callmePicacho opened this issue 5 years ago • 0 comments

原文中:

ic = *p3;   // 合法, 对 p3 取值后是一个 int 然后赋值给 ic

其中 ic 和 p3 的定义是:

const int ic;
const int *const p3;

无法将值赋给常量,此答案应为非法

callmePicacho avatar Jul 23 '20 13:07 callmePicacho