I have been looking in a sample code which i never expected to run.
class A
{
public:
void show() { cout << "show" << endl; }
};
int main()
{
std::cout << "Hello World!\n";
A * ptr = NULL;
ptr->show();
std::cout << "DONE!!!!!!";
}
I have declared a nullpointer which is still running and calling the show() method. How is it possible??