Question: C++ coding assignment: Please use the given function prototype. Write a function that takes an array of unsigned short int, and eliminates all duplicates of
C++ coding assignment:

Please use the given function prototype.
Write a function that takes an array of unsigned short int, and eliminates all duplicates of that array, places the elements without duplicates in a second array. For example: unsigned short int data[] - (1, 3, 1, 4, 5, 3]; unsigned short result[sizeot(data)/sizeof(data[o])]; sizet nonDuplicates; nonDuplicates - RemoveDuplicates (data, result, sizeof(data)/sizeef(data[])); // array result would have values: 1, 3, 4, 5 and nonDuplicates would have value 4 Function prototype: sizet RemoveDuplicates(const unsigned short int[], unsigned short int], sizet)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
