Nothrow New в 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";
}