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?

It tells the compiler that a variable or a function exists, even if the compiler hasn’t yet seen it in the file currently being compiled. This variable or function may be defined in another file or further down in the current file.

(Continued on next question...)

Other Interview Questions