Re: Sharing static variables or function between source files.
- From: "Miles Davis" <miles.pz@xxxxxxxxx>
- Date: 28 Nov 2006 00:15:56 -0800
"raxitsheth2000@xxxxxxxxxxx 写道:
"
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.
Undoubtedly, static var can not be accessed directly in different
files. I meaned by using a pointer, we could access the var with some
limitations (such as readonly attribute).
--raxit sheth
.
- References:
- Sharing static variables or function between source files.
- From: shantanu
- Re: Sharing static variables or function between source files.
- From: raxitsheth2000
- Sharing static variables or function between source files.
- Prev by Date: Pointers and nested structures
- Next by Date: Re: removing newline character from the buffer read by fgets
- Previous by thread: Re: Sharing static variables or function between source files.
- Next by thread: Macros
- Index(es):
Relevant Pages
|
|