MS Default Pointer Value

MS Default Pointer Value

Don’t forget that MS compiler initiates pointers with 0xCCCCCCCC value. In this case:

 		void *p;		... //do something here...		if (p!=NULL) delete p; // Memory violation The right way void* p = NULL;Or if (p!=NULL && p != 0xCCCCCCCC ) delete p;



About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist