Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Can Static Variables Be Declared in Header Files
Can static variables be declared in a header file?
✍: FYIcenter
You can't declare a static variable without defining it as well (this is because the storage class modifiers static and extern are mutually exclusive). A static variable can be defined in a header file, but this would cause each source file that included the header file to have its own private copy of the variable, which is probably not what was intended.
2007-02-26, 9509👍, 0💬
Popular Posts:
What is the purpose of finalization? The purpose of finalization is to give an unreachable object th...
How can I implement a variable field width with printf? That is, instead of something like %8d, I wa...
Can you explain what is “AutoPostBack” feature in ASP.NET ? If we want the control to automatically ...
How To Set session.gc_divisor Properly? - PHP Script Tips - Understanding and Using Sessions As you ...
When should the register modifier be used? Does it really help? The register modifier hints to the c...