Any type of external objects (for example, variables or functions) not defined explicitly in another script file, should be described explicitly.
Use the keyword Extern hen describing an external object.
Examples:
extern int Global_var;
extern char *Name;
extern int func();
The length of external one-dimensional array can be omitted.
Example:
extern float Num_array[];
Because all functions are defined on the external level, the adjective extern is not needed to describe a function inside the block and you can omit it.
|