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?
AThe code segment is overwritten by the data.BThe data segment is overwritten by the data.CThe heap fills up the stack segment and the program crashes.DThe runtime stack fills up the stack segment and the program crashes.ENothing in particular. The program is just fine. Whats the big deal!?FNone of the above
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
