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 flush programming?
How do you declare a set in c++?
How do I run a program in notepad ++?
Which is best ide for c++?
Is java based off c++?
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
Why is c++ a mid-level programming language?
What happens when the extern "c" char func (char*,waste) executes?
Difference between Abstraction and encapsulation in C++?
what is c++
Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?
Is facebook written in c++?
How can I disable the "echo" feature?