Its really not possible to "remove" an object out of an array, since that spot will have to have *some* value. What you can do is to create another array to put the results into. I'll leave it up to you to improve upon this code
Code:
#include <stdio.h>
int main(void)
{
int arr[]= {4,6,3,4,2,1,6,9};
int dest[sizeof arr/sizeof arr[0]];
int count, count2, size, open=0;
size = sizeof arr/sizeof arr[0];
printf("size: %d\n", size);
for (count=0; count < size; count++)
for (count2=0; count2<size; count2++)
if ( arr[count] == arr[count2] && count2 < count)
{
open++;
break;
}
else
{
dest[count-open] = arr[count];
}
printf("Open: %d\n", open);
for (count=0; count<size-open; count++)
{
printf("%d\n", dest[count]);
}
return 0;
}