This is a C program that makes use of data structures to implement Optimal Page Replacement algorithm. The memory required in this code is handled dynamically.