What is the use of static functions?

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


Please Help Members By Posting Answers For Below Questions

If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?

591


What does flush do?

544


List down the guideline that should be followed while using friend function.

631


Can a program run without main function?

606


what is oops and list its features in c++?

532






How did c++ get its name?

556


List the advantages of inheritance.

623


Describe new operator?

605


What is a storage class used in c++?

596


What is c++ good for?

568


What is a type library?

672


Why do we use classes in c++?

564


what are the events occur in intr activated on interrupt vector table

1168


What is the use of map in c++?

591


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

703