write a program to remove duplicate from an ordered char array? in c

Answer Posted / shailesh

i m giving simlpe logic here.first sort the characters and
in a array. then check if a[i]==a[i+1],if yes, then move 1
place ahead i the arrray.

Is This Answer Correct ?    5 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what type of questions arrive in interview over c programming?

1545


What is modeling?

634


What is restrict keyword in c?

635


c program for searching a student details among 10 student details

1646


Here is a neat trick for checking whether two strings are equal

558






What do you mean by c?

578


What does 3 mean in texting?

604


How will you write a code for accessing the length of an array without assigning it to another variable?

611


What are identifiers c?

558


Is there a way to switch on strings?

607


Is null valid for pointers to functions?

601


How can you increase the allowable number of simultaneously open files?

587


How can I remove the leading spaces from a string?

623


‎How to define structures? · ‎

617


List some of the static data structures in C?

755