Interview Questions

What does extern mean in a function declaration?

C Interview Questions and Answers


(Continued from previous question...)

What does extern mean in a function declaration?

extern is significant only with data declarations. In function declarations, it can be used as a stylistic hint to indicate that the function's definition is probably in another source file, but there is no formal difference between

extern int f();
and
int f();

(Continued on next question...)

Other Interview Questions