1:加了static後表示該函數失去了全局可見性,只在該函數所在的文件作用域內可見
2:當函數聲明爲static以後,編譯器在該目標編譯單元內只含有該函數的入口地址,沒有函數名,其它編譯單元便不能通過該函數名來調用該函數,這也是對1的解析與說明
{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"typ
{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragr
{"type":"doc","content":[{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null