static member variable in C++

Static variables are initialised to 0. It is initialised only once. Throughout the program, only one copy of the static member variable is created for the entire class hence static member variables are also called class variables.