Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Programming/Programming Languages/C++/Code/Keywords/static

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

__NOTOC__ The static keyword can be used in four different ways: to create permanent storage for local variables in a function. to specify internal linkage. to declare member functions that act like non-member functions. to create a single copy of a data member. Alter the above links from subsection to book locations after the structure is fixed. <noinclude> The static keyword can also be used on functions, inside functions, on classes, on classes members (data and functions), in structs, unions (but not in a union's member) we will cover each use separately. <noinclude> <noinclude> C++ Programming