Write a program for Linked file allocation strategy.
Theory
In Linked file allocation contains table where each a field of the the table points
to starting block of memory. It means each block pointer points to the next successive
block. There fore there is no external fragmentation
Program
Input
Enter How Many Blocks That Are Already Allocated:3
Enter Blocks Numbers That Are Already Allocated:4 7 5
Enter Starting Index Block & Length:3 7 9
Output
3->1
4->1 file is already allocated 5->1
6->1
7->1 file is already allocated 8->1
9->1file is already allocated 10->1
11->1
12->1