C++ Static Data Question:

What is static variable?

Tweet Share WhatsApp

Answer:

Static variables are the variables which has exactly one copy per class. They belong to the class as a whole but not for its instances (objects). All static variables are declared by using the modifier ‘static’.

For example:

Download C++ Static Data PDF Read All 17 C++ Static Data Questions
Previous QuestionNext Question
Can you please explain what is class using C++?What is static type varidentifier?