Yes.
if ( MyPtr == NULL )
{
// Do your thing.
}
Or, more usually,
if(MyPtr) // NOT equal NULL
{
// dereference the pointer safely
}
Yes.
if ( MyPtr == NULL )
{
// Do your thing.
}
Or, more usually,
if(MyPtr) // NOT equal NULL
{
// dereference the pointer safely
}