Const, Extern at Declare

xiaoxiao2021-03-06  118

For example, declare INT i; other files If you want to use, you can extern Int i; It is declared to Extern const I = 1; in addition, in a header file, the function and variables are declared, if the multiple files are included, the definition of the variable will be repeated (except for Const), and the function will not actually cons. The variables were also compiled twice, but they were compiled.

转载请注明原文地址:https://www.9cbs.com/read-102841.html

New Post(0)