b) Develop an algorithm to remove duplicates from an ordered array of 10 elements. For example, if the input is 6, 7, 2, 7, 5, 1, 1, 5, 8, 2 then output should be 6, 7, 2, 5, 1, 8. Prepare a function program in ‘C’ for this algorithm.
Develop an algorithm to remove duplicates from an ordered array of 10 elements
in C and CPP