Answer Posted / aavesh yadav
Static functions are functions which can access only static
variables and local variables.It can be called by class
name bcoz it is specific for a class in which it is
defined,not for any specific object of that class.It can
not be inherited also.
| Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
how to explain our contribution in the project?
What is istream c++?
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?
Can you write a function similar to printf()?
What is meant by a delegate?
How do you write a function that can reverse a linked-list?
What kind of problems can be solved by a namespace?
What is a responder chain?
What is protected inheritance?
What is the difference between the functions rand(), random(), srand() and randomize()?
How did c++ get its name?
What are friend functions in C++?
What is the best c++ book for beginners?
Is c++ the best programming language?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.