Program To Delete Duplicate Elements of An Array With 0 and Take All 0 To Right
Program To Delete Duplicate Elements of An Array With 0 and Take All 0 To Right
Program To Delete Duplicate Elements of An Array With 0 and Take All 0 To Right
int A[10];
cout<<"Enter array:";
for(int i=0; i<10; i++)
cin>>A[i];
for(i=0; A[i]!='\0'; i++)
{
if(A[i]==A[j])
{
}}
for(i=0; A[i]!='\0'; i++)
{
if(A[i]==0)
A[i]='\0';