Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a program for deleting duplicate elements in an array

Answer Posted / bhanuprakash a

/* here is the actual logic */
for(i=1; i<n; i++)
{
for(j=i+1;j<=n;j++)
{
if(a[i] = a[j])
{
for(k=j;k<n;k++)
{
a[k]=a[k+1]; //deletion
n=n-1;
}
}
}
}

Is This Answer Correct ?    7 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is d scanf?

1038


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

976


What is break in c?

1001


Explain what is operator promotion?

1044


What is s or c?

1025


What is string concatenation in c?

1050


Is null always equal to 0(zero)?

1010


Explain what is the heap?

1025


what is bit rate & baud rate? plz give wave forms

1926


What is volatile c?

976


Write a program to reverse a given number in c?

999


what is the syallabus of computer science students in group- 1?

2284


Write a program to know whether the input number is an armstrong number.

1085


How can I manipulate strings of multibyte characters?

1094


write a program to concatenation the string using switch case?

2053