In general yes, both assign the null value to pointer like types
- C#: class, interface, delegate or pointer types
- C++: pointer types or pointer-to-member type
It doesn't convert to numeric values in either language. One difference though is that in C++ nullptr
can convert to bool
. This is not true in C#