Why does the first segment of code not crash?
- by megha
class TestNull
{
private:
int m_iX;
public:
TestNull():m_iX(0){}
void show()
{
printf("Hello New World ");
}
};
int _tmain(int argc, _TCHAR* argv[])
{
TestNull *pTest = NULL;
pTest-show();
int x;
scanf("%d",&x);
return 0;
}