作者Tsaochimai (這下糗了.....)
看板Programming
標題[問題] static的位置?
時間Fri Aug 24 10:33:04 2007
不好意思...問個很笨的問題...
int static A();
static int A();
這兩個函式的宣告是不是一樣啊?
static放在型別前後會影響執行結果嗎? 謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.112.24.180
推 freesamael:在c++裡這兩者都是static function 140.124.183.14 08/24 14:52
→ freesamael:其他語言我就不清楚了... 140.124.183.14 08/24 14:53
→ freesamael:但是很少看到有人把static放在型別後 140.124.183.14 08/24 14:54