Answers for "nothrow new in cpp"

C++
0

nothrow new in cpp

int *p = new(nothrow) int;
if (!p)
{
   cout << "Memory allocation failed\n";
}
Posted by: Guest on April-01-2022

Browse Popular Code Answers by Language