Answer Posted / amit
Amit Srivastava:
What i think , static functions are used with the conditions
where there is no need to occupy RAM memory unnecessarily.
As ,other than Static functions are attached with the object
and ready to use memory space as and when a object of that
class is instantiated.But Static functions are having only
one address as they are independent of Objects.
| Is This Answer Correct ? | 4 Yes | 7 No |
Post New Answer View All Answers
Should the member functions which are made public in the base class be hidden?
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
What is a lambda function c++?
Is c++ high level programming language?
How can virtual functions in c++ be implemented?
We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?
What is iterator c++?
Write a code/algo to find the frequency of each element in an array?
How to demonstrate the use of a variable?
What does new in c++ do?
What are the classes in c++?
Is c++ proprietary?
What happens when the extern "c" char func (char*,waste) executes?
Why is it necessary to use a reference in the argument to the copy constructor?
What does catch(…) mean?