What is the advantage of "NULL == pMyPointer" instead of "pMyPointer == NULL"?

What is the advantage of "NULL == pMyPointer" instead of "pMyPointer == NULL"?

Post by Rob Vermeu » Sun, 11 Apr 2004 04:26:09


That was easy :-)
Much easier than the posting about using "++i" instead of "i++". :-)

Although I must say that I too happen to make such mistakes sometimes
(forgetting the second '=').
That is just the problem of knowing too much programming languages (or any
languages whatsoever). The brain sometimes mixes up the synthaxes :-)

I think I'll use the "NULL==..." version alot more now :-)

Anyway, thanks Peter!