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
Which software is used for c++ programming?
What is wrapper class in c++?
What does it mean to declare a destructor as static?
Does dev c++ support c++ 11?
Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
What is the use of endl in c++ give an example?
What is the most useful programming language?
What is a manipulative person?
Describe the setting up of my member functions to avoid overriding by the derived class?
What is a c++ vector?
What is c++ programming language?
Why can templates only be implemented in the header file?
What is the error in the code below and how should it be corrected?
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.
How we can differentiate between a pre and post increment operators during overloading?