Question: If we keep calling the function malloc ( ) in our code, but never call function free ( ) , what happens to memory in

If we keep calling the function malloc() in our code, but never call function free(), what happens to memory in a running program?
A.The code segment is overwritten by the data.B.The data segment is overwritten by the data.C.The heap fills up the stack segment and the program crashes.D.The runtime stack fills up the stack segment and the program crashes.E.Nothing in particular. The program is just fine. Whats the big deal!?F.None of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!