intmain(){intc[]={1,2,3,4,5};int*pt=(int*)(&c+1);printf("%d\n",*(pt-1));pt=(int*)(c+1);printf("%d\n",*(pt-1));return0;}輸出:5,1;請(qǐng)問(wèn)第一次輸出為什么是5,數(shù)組名就是地址了,再取地址變成了什么?
數(shù)組名取地址
狐的傳說(shuō)
2019-04-10 20:48:32