Re: [問題] 請教 Function Pointer 的觀念

看板C_and_CPP (C/C++)作者 (三億兩千萬大散戶)時間16年前 (2009/03/07 18:47), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/4 (看更多)
無聊的話也可以這樣寫 在BCB6可以compile可以run 但是不保證在其他compiler可以正常compile void bar() { } void (*foo1)() = bar; void (*foo2)() = &bar; void (&foo3)() = bar; void (&foo4)() = &bar; -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 115.83.188.241
文章代碼(AID): #19ib3Pfu (C_and_CPP)
文章代碼(AID): #19ib3Pfu (C_and_CPP)