C program to delete duplicate elements in an array?

 Dont Buy Textbooks. Rent 'EM Save 60-80%



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 ...
  • My computer has an identified file w/c i cant..
  • Delete C: partition or just install new OS ov..
  • I need a function code in c that can delete a..
  • Should I delete c:\windows\system32\winser32...
  • Can I delete C:\Documents and Settings\Claudi..
  • How do I delete: C:/users/kenneth/appdata/loc..
  • How do i delete C:\WINDOWS\TEMP\GLB51B1.TMP i..
  • Can anyone tell me if I am able to delete c d..
  • C Drive is get full.No option to delete anyfi..
  • Delete pointer in c++?
  • Why I cant Delete my partition C?
  • Can I Delete this file C:\Program Files\IBM\S..
  • How can I delete folder in C:\program files? ..
  • Delete partition in C: drive?
  • How to delete Microsoft Visual C++ 2005 Redis..
  • I have 2 administator a/c.I want to delete 1 ..
  • How one c&#039;d delete one Yahoo mail ad..
  • Will formatting my c: drive delete everything..
  • How to delete C:\8ti.exe & C:\autorun.inf..

  • The information post by website user , we not guarantee correctness.

    

    Dental Treatment Skin Whitening Skin Problems Skin Rashes Shoes