C++ Template Question: Download Questions PDF
Please tell me how is static data member similar to a global variable?
![C++ Template Interview Answer C++ Template Interview Question](https://globalguideline.com/public/images/interview/6.png)
Answer:
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.
Download C++ Template Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell us what is the STL, standard template library? | What is Template class? |