what is possible way to use the function from the

2019-06-06 06:48发布

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?

1条回答
ら.Afraid
2楼-- · 2019-06-06 07:06

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.

查看更多
登录 后发表回答