L
love307
Hi all!
I have one question, want to have your help for answer it.
This is a problem:
class A
{
public:
int n;
void printMessage()
{
printf("hello world");
}
};
void main()
{
A *a = NULL;
a->printMessage();
}
I don't know why when debug: a = 0x0000000;
but we still call printMessage function.
Thank for your help!
Bui Minh Tu
I have one question, want to have your help for answer it.
This is a problem:
class A
{
public:
int n;
void printMessage()
{
printf("hello world");
}
};
void main()
{
A *a = NULL;
a->printMessage();
}
I don't know why when debug: a = 0x0000000;
but we still call printMessage function.
Thank for your help!
Bui Minh Tu