Answer Posted / brainless
If compilers don't check your pointers strictly,
you can also write code as below,
class A
{
//some static function code here
//never access non-static attributes here
static void callMe() {}
};
int main()
{
A * inst = NULL;
(*inst).callMe();
}
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is the basic difference between C and C++?
What are special characters c++?
What are the various storage classes in C++?
can any one help to find a specific string between html tags
which is changed to a sting..
weather.html looks (for location) is
What is c++ in english? Explain the concept of friend function in c++? Write about the members that a derived class can add? Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function? Will a recursive function without an end condition every quit, in practice
a) Compiler-Specific (Some can convert to an infinite loop)
b) No
c) Yes How does work in c++? What programming language should I learn first? What is new in c++? What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator. What are arrays c++? What is polymorphism & list its types in c++?