Interview Questions

What is a static function?

C Interview Questions and Answers


(Continued from previous question...)

What is a static function?

A static function is a function whose scope is limited to the current source file. Scope refers to the visibility of a function or variable. If the function or variable is visible outside of the current source file, it is said to have global, or external, scope. If the function or variable is not visible outside of the current source file, it is said to have local, or static, scope.

(Continued on next question...)

Other Interview Questions