Calling class method through NULL class pointer
<p>I have following code snippet:</p>

<pre><code>class ABC{
public:
        int a;
        void print(){cout&lt;&lt;"hello"&lt;&lt;endl;}
};

int main(){
        ABC *ptr = NULL:
        ptr-&gt;print();
        return 0;
}
</code></pre>

<p>It runs successfully. Can someone explain it?</p>
