What will be the output of this program? And why?
Posted
by Mac
on Stack Overflow
See other posts from Stack Overflow
or by Mac
Published on 2010-05-05T11:42:36Z
Indexed on
2010/05/05
11:48 UTC
Read the original article
Hit count: 132
I came across a good example written below:
class Test
{
private:
int m_iX;
public:
Test(void):
m_iX(0) { }
~Test(void) { }
void Show()
{
printf("Hello World");
}
};
int main()
{
Test* pTemp = NULL;
pTemp->Show();
return 0;
}
But, what does this code mean and do? Thanks
© Stack Overflow or respective owner