討論串[語法] pointer to array請教
共 4 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
arr is a pointer to a pointer to an int. arr is an array of "a pointer to an int" type. arr is a pointer to an int[COL](an int array type). 其實有一定的規則可循
(還有1610個字)
內容預覽:
array是長這樣子的. 1 2 3 4. 2 4 6 8. X X X X此處ia先decay成"pointer to a int[4](a int array type)"並assign給ip. ip成為a pointer to a int array named ia[0]. 指向ia[1]的
(還有257個字)
內容預覽:
最近在看C++ primer, 看到pointers 與多維 arrays的關係. 有段code 我拿來跑跑看, 有些不清楚的地方想請教. int ia[3][4] = {. {1, 2, 3, 4},. {2, 4, 6, 8},. };. int (*ip)[4] = ia; //請問這邊=ia
(還有141個字)
首頁
上一頁
1
下一頁
尾頁