1. *p=nullptr; (C++ 11) [recommendation]
2. *p=0;
3. *p=NULL; (include <cstdlib>)
Reference:
S.B. Lippman, "C++ Primer (5th version)", PUBLISHING HOUSE OF ELECTRONICS INDUSTRY, Beijing, 2013
1. *p=nullptr; (C++ 11) [recommendation]
2. *p=0;
3. *p=NULL; (include <cstdlib>)
Reference:
S.B. Lippman, "C++ Primer (5th version)", PUBLISHING HOUSE OF ELECTRONICS INDUSTRY, Beijing, 2013