Nothrow baru di CPP
int *p = new(nothrow) int;
if (!p)
{
cout << "Memory allocation failed\n";
}
Manmohan
int *p = new(nothrow) int;
if (!p)
{
cout << "Memory allocation failed\n";
}