R
Rahul
Hi Everyone,
It is known that static member variables can be accessed without
creating an instance of the class and it serves as a global variable
without polluting the global name space.
So does that mean that the memory of the variable is allocated in
BSS (data segment meant for static global variables) when the program
is loaded and is available until the program is killed.
Thanks in advance!!!
It is known that static member variables can be accessed without
creating an instance of the class and it serves as a global variable
without polluting the global name space.
So does that mean that the memory of the variable is allocated in
BSS (data segment meant for static global variables) when the program
is loaded and is available until the program is killed.
Thanks in advance!!!