What does it mean when the function in global namespace is declared as static C++? [duplicate]
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: What is a “static” function? I have seen a function in a global namespace that is declared like this: static int function_name(int a, double* p, int c, float * u) { //do something with these arguments } What the static keyword means here? EDIT: Now when I know what is for static, please explain what advantage gives the restriction of a function to be visible in a file only where it is declared? I mean why I