static_cast

static

static is a data type modifier that creates permanent storage for the local variable that it precedes. This enables the specified variable to maintain its value between function calls, for example. static can also be used to declare global variables. In this case, it limits the scope of the variable that it modifies to the file in which it is declared.

In C++, when static is used on a class data member, it causes only one copy of that member to be shared by all objects of its class.




C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net