Re: Sharing static variables or function between source files.



Is this interview question ?

static is having File Scope. and lifetime up to prog End.

What do you mean by "Used" ? u may used by pointer and all but not
directly in different files.

--raxit sheth




shantanu wrote:
Hi,
How can we declare a static variable or function declared in one
source file, which is to be used in other source file?

.



Relevant Pages