Sunday, March 13, 2011

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 / variable. If the function / variable is visible outside of the current source file, it is said to have global, or external, scope.

If the function / variable is not visible outside of the current source file, it
is said to have local, or static, scope.

No comments:

Post a Comment