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
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
What are the steps in the development cycle?
What are the advantages of c++ over c?
What is class syntax c++?
What is c++ and its uses?
How did c++ start?
What is an object in c++?
What is malloc in c++?
What are guid? Why does com need guids?
What is a character in c++?
Define a constructor?
Explain bubble sorting.
Difference between a homogeneous and a heterogeneous container
Write my own zero-argument manipulator that should work same as hex?
What is binary object model?