// removeDups.c
// Demonstrate a function to remove duplicates from an array

// this function removes duplicates and returns the new size of the array
// after duplicates are eliminated

int removeDups(int a[], int size);

int main(void)
{

  int a[] = {1,3,5,3,2,5,1,7};

  int size = 8;

  int newSize;

  newSize = removeDups(a, size);

  // now a should be 1,3,5,2,7
  // and newSize should be 5


}


