c extern
c externextern, used to declare variable / function, so that to use them before define them,
a external variable / function could only be define once, but could be declare multiple times,
extern, just declare the types, but will not allocate memory, memory is allocated only when define,
header file:
usually, put extern into a header file, so that to include by other source files,
static:
you should not use extern on static variable/function,
页:
[1]