|
|
|
|
|
by cjensen
4912 days ago
|
|
No! C and C++ are define NULL identically: it can be either 0 or (void * ) 0 at the discretion of the compiler author. So the bug you mention which bit you by using "C library from C++" was not caused by a difference between C and C++. It was caused by a difference in the definition of NULL between those two compilers. You could just as easily have found a C++ compiler which did work, or a C compiler which didn't. |
|