what is difference between static and non-static variables
Answer Posted / daxini
Static :
A static variable is defined for the class itself and exists independently of any object of that class.
non-static:
a non static variable is defined for object of the class thus it is bound to an instance of its class
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
What is array give example?
What is the full form of dos?
What are compilers in c++?
What are the 3 levels of programming languages?
What is scope resolution operator in c++ with example?
What do you understand by zombie objects in c++?
Explain polymorphism?
How can you say that a template is better than a base class?
Which one is better- macro or function?
What is format for defining a structure?
Is rust better than c++?
Is c++ free?
What are guid?
Is it possible to have a recursive inline function in c++?
How the delete operator differs from the delete[]operator?