Answers

Question and Answer:

  Home  C++ Static Data

⟩ What is static variable?

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:

 247 views

More Questions for you: