How is static data member similar to a global variable? - C++

How is static data member similar to a global variable?

The life of a static data member exists between the functions which means that they are resident through out the execution of a program like the global variables.
C++ Template interview questions and answers
C++ Template - In this series, we have covered all about C++ Template and answered the questions that might be asked during an interview.
What is virtual function? Explain with an example - C++
What is virtual function? Explain with an example - A virtual function is a member function that is declared within a base class and redefined by a derived class. ....
What is a virtual base class? - C+++
What is a virtual base class? - An ambiguity can arise when several paths exist to a class from the same base class....
Post your comment