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
What is the c value paradox and how is it explained?
What is the purpose of ftell?
Explain the use of #pragma exit?
What are the characteristics of arrays in c?
Do pointers store the address of value or the actual value of a variable?
What is the difference between functions getch() and getche()?
while initialization of array why we use a[][2] why not a[2][]...?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
Explain what is the difference between the expression '++a' and 'a++'?
What is the meaning of ?
What is the difference between constant pointer and constant variable?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
Tell us something about keyword 'auto'.
What is struct node in c?
What are the 32 keywords in c?