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
Is c weakly typed?
what is event driven software and what is procedural driven software?
What is string in c language?
What does the characters “r” and “w” mean when writing programs that will make use of files?
What's the difference between constant char *p and char * constant p?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
What is clrscr in c?
Is exit(status) truly equivalent to returning the same status from main?
What is #include stdio h and #include conio h?
What is dangling pointer in c?
What are identifiers c?
Explain what is the purpose of "extern" keyword in a function declaration?
Why we use conio h in c?
What are the differences between Structures and Arrays?
Why do we need a structure?