Original Post
Why is my code crashing??
#include <iostream>
using namespace std;
void * operator new(size_t size)
{
cout<<"Overloaded New Called";
void *p=malloc(size);
if(!p)
cout<<"Memory Can Not Be Allocated";
return p;
}
int main()
{
char*p=new char;
return 0;
}