编译这个程序:
#include <stdio.h>
void main() {
char *s = "helo";
char **sp = &s;
const char **csp = sp;
const char *cs = *csp;
printf("%s\n", cs);
}
得到警告:
cc.c: In function ‘main’:
cc.c:6:24: warning: initialization from incompatible pointer type [enabled by default]
const char **csp = sp;