Cpp_Primer_Answers icon indicating copy to clipboard operation
Cpp_Primer_Answers copied to clipboard

关于练习2.32

Open CirillaZhu opened this issue 4 years ago • 1 comments

此节在于讲解 constexpr和常量表达式,对应练习最好用到。

对此节,更合适的解法是改为: const int null = 0, * p = null; // p 是 low-level const constexpr int null = 0, * p = null;// p是 top-level const

CirillaZhu avatar Mar 26 '21 06:03 CirillaZhu