Write a program to implement first fit algorithm in memory management using C++



Enter number of blocks: 5
Enter size of each block: 200 400 300 550 120
Enter no. of process: 4
Enter size of each process: 250 500 100 150

Program Code (First Fit Algorithm):



Output :