+ 6

Outdated/mixed course ?

I saw the part when initializing a pointer, pointing to nothing. In C++, since C++11, it should be `void *ptr = nullptr;` instead. It's in C that we use NULL.

29th Oct 2016, 10:25 AM
Artemis
Artemis - avatar
3 odpowiedzi
+ 4
You're right. Nowadays in C++ we should use nullptr instead.
14th Nov 2016, 10:42 PM
Jeremy Warren
Jeremy Warren - avatar
+ 2
We can use NULl in c++ too
6th Nov 2016, 8:58 AM
Mihai Dancaescu
Mihai Dancaescu - avatar
0
By convention it should be avoided. Like we can use C headers in c++ too
6th Nov 2016, 10:27 AM
Artemis
Artemis - avatar