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
Why do we use vector in c++?
What is the prototype of printf function?
Write a program to find the Factorial of a number
What type of question are asked in GE code writing test based on c++ data structures and pointers?
What are default parameters? How are they evaluated in c++ function?
Where and why do I have to put the "template" and "typename" keywords?
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
What do you mean by function pointer?
What is the real purpose of class – to export data?
How one would use switch in a program?
In a function declaration, what does extern mean?
Does c++ support exception handling?
Explain explicit container.
Which bit wise operator is suitable for putting on a particular bit in a number?
What do c++ programmers do?