討論串[問題] 關於function pointer
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者hardcover (不可說不可說)時間15年前 (2010/01/30 05:45), 編輯資訊
0
0
0
內容預覽:
有一個cdecl package可以玩一下. cdecl> explain char *(*(*x)(void))[];. declare x as pointer to function (void) returning pointer to array of pointer to char. -

推噓6(6推 0噓 0→)留言6則,0人參與, 最新作者adrianshum (Alien)時間15年前 (2010/01/26 08:00), 編輯資訊
0
0
0
內容預覽:
推文有說到答案了 (好像正確吧?). 我也對這種很苦手.. 理解這種 function ptr declaration 的方法有. 一個叫 Right-Left-Rule.. 用你的例子做一次示範:. char *(*(*x)(void))[] x 是. char *(*(*x)(void))[]
(還有359個字)

推噓3(3推 0噓 4→)留言7則,0人參與, 最新作者tiwei (∫期望dt=ivy + C)時間15年前 (2010/01/26 06:17), 編輯資訊
0
0
0
內容預覽:
char *(*(*x)(void))[];. what does the above statement declare?. 想請教一下 最後那個[]代表的是什麼意思. 還有要怎麼用typedef把這個東西拆解. 如果方便的話..可以舉個例子寫一點code讓我參考一下. 研究了很久還是不太懂阿..
首頁
上一頁
1
下一頁
尾頁