(Solved) : 2 Memory Manager 16 Points Fill Specified Data Following Sequence Commands Executed Base A Q29984305 . . .
please explain clearly howthey got the numbers , I do not really get it
2. (Memory Manager, 16 points) Fill in below the specified data after the following sequence of commands have been executed. Base address is 0 MemoryManager M(100); p1 = M.malloc (20); p2 = M.mal loc (15); p3 = M.malloc(100); M.free (p2) p4M.malloc (30): M.free (p3) p5 M.malloc (20) pl-0 p4-20 p5 = ??? -Runtime error: free called on unallocated pointer MemoryManager M(100) plM.malloc (20) p2 M.malloc (15); p3 M.free (p2); p4 -M,malloc (30); M.free (p3); p5 -?.malloc (20); M.malloc (10) p445 p5 20 Show transcribed image text
Expert Answer
Answer to 2 Memory Manager 16 Points Fill Specified Data Following Sequence Commands Executed Base A Q29984305 . . .
OR