I want to evaluate a pointer is null or not by an if condition like below :
Model * model;
if(model == nullptr){
//do something...
}
But this does not work, Strangly the model pointer instead of pointing to 0x0 location it points to 0xcdcdcdcdcdcdcdcd memory location then model==nullptr doesn't work for that , i also did if(model) , if(model== NULL) these are also not working!
any idea about this problem ?
nullptrin c.