C program to delete duplicate elements in an array?
i want a simple c code to delete duplicate elements in an array
C program to delete duplicate elements in an array?c++ template
http://www.google.com/codesearch?q=array...
C program to delete duplicate elements in an array?microsoft visual c++
assuming your array is x with n elements.
i=0;
while (i<n-1)
{
j=i+1;
while(j<n)
{
if (x[i]==x[j])
{
for (int k=j; k<n-1; k++)
x[k]=x[k+1];
n--
}
j++;
}
i++;
}
More Related Questions and Answers ...
The information post by website user , we not guarantee correctness.
Dental Treatment Skin Whitening Skin Problems Skin Rashes Shoes
