can you set a pointer to null c++ code example Example: SET TO NULL pointer c++ *ptr=NULL; /*or*/ *ptr=0;