我以前只知道它用在多文件编译时,或者 extern "C" 表示按照 C 语言方式编译。但是最近有人说它还可以用来卡常?
extern "C"
想问一下在单文件的程序里怎么用 extern 卡常、原理是什么?
extern
是声明函数、变量加 extern 还是用 extern 引入库函数?