练习2.27

Author: CharlieHonCreated Apr 9, 2023Updated Apr 9, 2023

练习2.27里(b)中的i2,在前面没有找到它的定义。 (a). int i = -1, &r = 0; (g). const int i2 = i, &r = i; (b). int *const p2 = &i2; 如果i2是按这个顺序来定义的话,那(b)应该不合法。p2得包含底层const const int *const p2 = &i2;

Source: applenob/Cpp_Primer_Practice