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 do I start a c++ project?
what is a class? Explain with an example.
What are shallow and deep copies?
Incase of a function declaration, what is extern means?
Explain how a pointer to function can be declared in C++?
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
Can char be a number c++?
How can I learn dev c++ programming?
How to get the current position of the file pointer?
When must you use a pointer rather than a reference?
Which is better c++ or java?
what are the iterator and generic algorithms.
How does class accomplish data hiding in c++?
What are the uses of pointers?
What are c++ redistributables?