Hi there,
How do we differentiate between NULL and zero in C++. I have a program in which i assign NULL to num variable but if i apply if condition to check whether it is NULL or zero. Program still gives me result zero.
//num = 0;
num = NULL;
if(num == 0)
cout <<"num is zero"<<endl;
else if(num == NULL)
cout <<"num is Null"<<endl;
Anyone please explain how we apply check on NULL and zero ??