WHAT IS EXTERN AND STATIC FUNCTION IN C?
By default, any function that is defined in a C file is extern. These functions can be used in any other source file of the same project which has many other files.
When we declare/define a function as static, these functions can’t be used in other files of the same project.
Also, if we want to use the same function name in different files of the same project, we can use static function which won’t through any compilation error for duplicate function name.
total answers (1)
start bookmarking useful questions and collections and save it into your
own study-lists, login now to start creating your own collections.