No it doesn't matter. A pointer is in the end just an integer. The null pointer can either be:
#define NULL 0
#define NULL 0
To copy to clipboard, switch view to plain text mode
or
#define NULL ((void *)0)
#define NULL ((void *)0)
To copy to clipboard, switch view to plain text mode
More often than not, the former is used.
In the C++0x standard that is still in the making, plans are to deprecate the above definitions and introduce a null pointer called nullptr_t, to prevent the following confusion:
void func(int i);
void func(const char *t);
void func(int i);
void func(const char *t);
To copy to clipboard, switch view to plain text mode
Bookmarks