What happens when I set the value of an integer to NULL? I print it out / debug it, i get the value zero.
Even I can use the NULL assigned integer to initiate another integer.
Well, then what is the point of being NULL? Why set it to zero?
int main()
{
int x = NULL;
int u = x; //I thought, this line should through an error
cout << x << " " << u << endl;
return 0;
}
output:
0 0