char p1[12] = {1,2,3,4,5,6};char (*p2)[3];p2 = &p1;這樣可以實(shí)現(xiàn),但是gcc編譯時(shí)有警告:warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
C語(yǔ)言能否用二維數(shù)組的形式訪問(wèn)一維數(shù)組
www說(shuō)
2019-01-05 21:55:33