after declaration the pointer to int is not NULL whereas a pointer to class is NULL.
int *pint;
MyClass *Myob;
if (pint){
cout << "pint is not null";
}
if (!Myob){
cout << "Myob is null";
}
Why aren't pointers to Built in types and pointers to classes behaving the same way?