My question is simple.
I have three files in my program.suppose one of files has static function.how can I use that function from the other one?
I knew that static function accessed by the files itself.i want to know any possible way.
If the way is available, how can i stop that access in terms of function declaration?
A function declared as file-scope static will not be visible from outside the file, meaning that you will not be able to look the function up by name etc. However, if a function from the same file hands out a pointer to the function, code will be able to call it, since there is no resolving or lookup involved.