精華區beta EE_DSnP 關於我們 聯絡資訊
請問一下 1. int (*a)(xx); 'a' is a pointer to 'int (xx)' ^^^^^^^^ return int, argument xx 2. int (*b())(xx); 'b' is a funtion that return a pointer to 'int (xx)' 以上對嗎? 那麼如果我要宣告 b 的 function pointer 該如何寫ꄊ 用 typedef 的方法, 似乎可以寫成這樣 typdef int(*c)(xx); c d(); // just like b c (*e)(); 那如果我單純只是想寫開呢, 他會變成怎麼樣ꄿ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.33.218 ※ 編輯: aknow 來自: 218.166.203.6 (11/07 03:39)
box20:這個人沒有修 11/07 12:24
ric2k1:XD 他上學期修過啦... 歡迎大家上來討論 11/08 00:51
ric2k1:不過我現在沒空回答, 要趕快把 HW3 生出來... 11/08 00:52
box20:唉呀 被發現了 老師記憶力真好 11/08 12:24