Question: This chapter does not say what happens when you run out of memory using new. Thats called memory exhaustion. Find out what happens. You have
This chapter does not say what happens when you run out of memory using new. That’s called memory exhaustion. Find out what happens. You have two obvious alternatives: look for documentation, or write a program with an infinite loop that allocates but never deallocates. Try both. Approximately how much memory did you manage to allocate before failing?
Step by Step Solution
3.40 Rating (181 Votes )
There are 3 Steps involved in it
ANSWER include using namespace std int main int ptr new int1000... View full answer
Get step-by-step solutions from verified subject matter experts
