Write a code in C (on paper! in 2 mins!) to receive an array of different integer values, and produce another array(list) of only the duplicated values in the original array, if a duplicate value is found more than once, the list shall only show one value, order is not important.
Sigiloso
compare the current element to the original array and the new array of duplicated elements. if you find current element is duplicated in the original and its not in the new array , then add it to the new array