|
E.g:
struct LNode
{
int data;
LNode * next;
}
void main ()
{
LNode * p;
// So far, p has not been allocated memory,
// I want to judge here, how can I know that p does not point to the object instance
if (...)
{
// other operations
}
}
Note: I have tried both p! = '\0' and p! = NULL, to no avail. |
|