const char * const authorName = "light"

这样子,*authorName 与 authorName 都是const,都不允许改变。

如果是:

 

const char * authorName = "light"

则*authorName 是const,不允许改变,但 authorName 可以改变,也就可以authorname = & y 等方式,改变指向。

同理,如果是:

 char * const authorName = "light"

则*authorName 允许改变,但 authorName 不允许改变。