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
Declare a class vehicle and make it an abstract data type.
Define macro.
Is multimap sorted c++?
What do you mean by delegate? Can a user retain delegates?
How can you tell what shell you are running on unix system?
How did c++ get its name?
What does ctime() do?
What is auto type c++?
What are features of c++?
Can a program run without main?
Why do we need constructors in c++?
What is c++ similar to?
What are proxy objects in c++?
Write a function to find the nth item from the end of a linked list in a single pass.
How do you compile the source code with your compiler?