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

Is c easy to learn?

989


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3326


Can you tell me how to check whether a linked list is circular?

1430


What does != Mean in c?

1056


Do you know the difference between exit() and _exit() function in c?

1063


What is the difference between mpi and openmp?

1302


Explain the concept and use of type void.

1119


Difference between macros and inline functions? Can a function be forced as inline?

1278


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

1062


Differentiate between functions getch() and getche().

1055


Write a program with dynamically allocation of variable.

1140


Can you add pointers together? Why would you?

1130


How can I change the size of the dynamically allocated array?

1152


How many main () function we can have in a project?

1115


What header files do I need in order to define the standard library functions I use?

1063