Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

nothrow new in cpp

int *p = new(nothrow) int;
if (!p)
{
   cout << "Memory allocation failed
";
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #nothrow #cpp
ADD COMMENT
Topic
Name
5+8 =