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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / avizo

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,sum;
printf("enter the first value a:");
scanf("%d",&a);
printf("enter the second value b:");
scanf("%d",&b);
sum=a+b;
printf("sum=%d",sum);
getch();
}

Is This Answer Correct ?    0 Yes 14 No

Post New Answer

More C Interview Questions

what do u mean by Direct access files? then can u explain about Direct Access Files?

0 Answers   LG Soft,


Write a program in c to print 1 121 12321 1234321 123454321

11 Answers   ANR, College School Exams Tests, Mu Sigma, Wipro,


struct node { int *a; char *b; char array[12]; }; struct node m,*n; assign the value in *a,*b,char array[12]

3 Answers  


Explain #pragma statements.

0 Answers  


Is c procedural or functional?

0 Answers  


What is a structure in c language. how to initialise a structure in c?

0 Answers  


What is signed and unsigned?

0 Answers  


What is meant by keywords in c?

0 Answers  


If we give two names then this displays the connection between the two people. It is nothing but flames game

1 Answers  


write a program that finds the factorial of a number using recursion?

13 Answers   Infosys, TATA,


Which built-in library function can be used to match a patter from the string?

0 Answers  


List some of the static data structures in C?

0 Answers  


Categories