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
Write about the role of c++ in the tradeoff of safety vs. Usability?
What is enum class in c++?
What do you mean by “this” pointer?
What is scope in c++ with example?
Explain all the C++ concepts using examples.
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
Is std :: string immutable?
What is dev c++ used for?
Name the debugging methods that are used to solve problems?
Explain about Virtual Function in C++?
Write a program which uses functions like strcmp(), strcpy()? etc
what are the decision making statements in C++? Explain if statement with an example?
Is it possible to have a recursive inline function in c++?
Which function should be used to free the memory allocated by calloc()?
How to declare a pointer to an array of integers?