Quote:
Originally Posted by sharmila
When we allocate memory using new it will return the address if it is sucessful else null.
On failure new throws an exception bad_alloc() according to standard. Though some compiler doesn't conform to this and return NULL.

Last edited by Aztec; 21Jun2006 at 03:31..