Why does the first segment of code not crash?
Posted
by megha
on Stack Overflow
See other posts from Stack Overflow
or by megha
Published on 2010-05-05T09:53:56Z
Indexed on
2010/05/05
9:58 UTC
Read the original article
Hit count: 151
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; }
© Stack Overflow or respective owner