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
What is d scanf?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
What is break in c?
Explain what is operator promotion?
What is s or c?
What is string concatenation in c?
Is null always equal to 0(zero)?
Explain what is the heap?
what is bit rate & baud rate? plz give wave forms
What is volatile c?
Write a program to reverse a given number in c?
what is the syallabus of computer science students in group- 1?
Write a program to know whether the input number is an armstrong number.
How can I manipulate strings of multibyte characters?
write a program to concatenation the string using switch case?