copying all the value of the array to the temporary array except the value which you want to delete and then copying all the values to the origanal array .
Removing identical Elements
it will probably work only for 1D array.
1. identify the element that needs to be deleted
2. copy all the remaining elements one step to the left
3. when the all the identical elements are overwritten make a new array of smaller size(depending how many elements were overwritten) and copy the old array to new array. again the index upto which the elements need to be copied depends upon how many elements were deleted.