NULL and nullptr are both considered 0, but NULL = 0 (as an integer) nullptr = 0 (as an pointer)
*ptr=NULL; /*or*/ *ptr=0;