I am writing a Merge Sort Code. But whenever I run the code for a large numbers it gives this error terminate called after throwing an instance of 'st9bad_alloc'.
The following is the divide portion of my code
You might also consider cutting down on the 4 news per function call. You don't need that many. And fix your return value. The function returns NULL in every instance.