U
Umesh
What is the use by making function Static.
Umesh said:What is the use by making function Static.
Short answer: static functions are invisible to the other compilation
units. This means you're allowed to re-use the same function names in
other source files, and the linker won't balk at you.
I'm sure there's a more precise way of saying the above.
James said:Maybe not more precise, but certainly simpler: A function F labeled
static can only be used by functions defined in the same file as F.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.