指针函数退化

void func_158301(){
    char *a[] = {"a","bz","cx","d"};//指针在栈指向全局变量区
    
    a[4] = "e";//a[1][2]->a[0+1][2]->*(a+1)[2]->*(a+1)[0+2]->*(*(a+1)+2)
    printf("%c\n",*(*(a+1)+1));//输入:z
    
}

你可能感兴趣的:(dlog)