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 C program to remove the repeated characters in the
entered expression or in entered characters(i.e) removing
duplicates

Answer Posted / nallavelli srinivas

MAIN()
{ int lsu=0;
char name[50];
pf("enter the string");
sf("%S",name);

printf(name[0]);
while(name[i]!='\0')
{
if(name[i]!=lsu){pf(name[i]);
lsu=name[i];
}
}
}

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

formula to convert 2500mmh2o into m3/hr

951


Write a program to generate the Fibinocci Series

1183


What is a c token and types of c tokens?

1021


Which is the best website to learn c programming?

1054


What is dynamic dispatch in c++?

1020


How can I remove the trailing spaces from a string?

1041


What are register variables in c?

987


What is a keyword?

1132


What is data types?

1040


What is .obj file in c?

1037


What is #line used for?

997


Are there constructors in c?

982


How reliable are floating-point comparisons?

1053


How do we open a binary file in Read/Write mode in C?

1205


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1688