How does below program prints "Show Called" ? I guess it should have been run-time error since value of obj ptr is NULL.
#include<iostream>
using namespace std;
   class ex
    {
        int i;
    public:
        ex(int ii=0):i(ii) {}
        ~ex(){cout<<"dest"<<endl;}
        void show()
        {
            cout<<"Show called";
        }
    };
    int main()
    {
        ex *obj = NULL;
        obj->show();
        return 0;
    }
 
     
     
     
    