int const * const a == const int * const a i do suggest that you can change the expression you use above for that you use cont int * and int * const
I have an ambiguous concept about a pointer pointing to a constant value. We know the following code may cause compiler to complain. const char c = 'a'; char *pc = &c; If the theory is the same, why complier should ignore the fllowing type conflict? int main(void) { char *p = "abcd"; ... *p = 'A'; ... }
Mr.Song said we can understand "abcd" as const char *, but it's char*.
应该区分“编译时”和“运行时”的概念。
如果您有建设性意见,哪怕只是纠正一个错别字,也请不吝赐教,您留下的姓名和email将会出现在本书前言的致谢中。再次感谢您的宝贵意见!