Posts (Latest 10 updated) : Read all

Link List (Edit):
Contents:
  1. C and C++ Programming Languages
    1. Programming Notes
      1. Static Keyword
#   ____                   _    ____ ____  ____
#  / ___|   __ _ _ __   __| |  / ___|  _ \|  _ \
# | |      / _` | '_ \ / _` | | |   | |_) | |_) |
# | |___  | (_| | | | | (_| | | |___|  __/|  __/
#  \____|  \__,_|_| |_|\__,_|  \____|_|   |_|
#

C and C++ Programming Languages

Both as timeless as the sun and the moon, C and C++ are arguably the two most important programming languages in the universe. Yada, Yada, and Yada…

Programming Notes

Static Keyword

When anything is declared as a static type it indicates that the item possesses a unique characteristic of permanence. What this characteristic means is dependent on what the item is.

  • static variables - have a memory space dedicated to them for the duration of the program.
  • static data member in a class - are shared by other objects in that class.
  • static member functions - are not dependent on the object class, and are only allowed to access static data members or other static member functions.
  • global static variables - similar to regular global variables, except they are only accessible from within the file it is defined.