Benoit SIGOURE wrote: > In C++, `0' is the preferred way of expressing `NULL'.
In C++, 0 can be used instead of NULL everywhere except inside sizeof and varargs argument lists. But what is _preferred_, depends on your and your co-developers' habits. People who also program in C prefer NULL because NULL does not have the pitfalls with argument passing (that Simon mentioned) and in sizeof. People who also program in Java or C# prefer NULL because in these languages there is a strict distinction between pointers and integral values. Bruno