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 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 is the c value paradox and how is it explained?

1051


What is the purpose of ftell?

1075


Explain the use of #pragma exit?

1172


What are the characteristics of arrays in c?

1049


Do pointers store the address of value or the actual value of a variable?

1077


What is the difference between functions getch() and getche()?

1094


while initialization of array why we use a[][2] why not a[2][]...?

2354


#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); }

1052


Explain what is the difference between the expression '++a' and 'a++'?

1213


What is the meaning of ?

1034


What is the difference between constant pointer and constant variable?

1220


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1988


Tell us something about keyword 'auto'.

1070


What is struct node in c?

1072


What are the 32 keywords in c?

1090