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

What are external variables in c?

1107


if p is a string contained in a string?

1851


Explain the use of 'auto' keyword in c programming?

1121


What is c definition?

1279


When should structures be passed by values or by references?

1045


find the sum of two matrices and WAP for it.

1143


Explain how do you determine whether to use a stream function or a low-level function?

1092


what does static variable mean?

1115


Why is event driven programming or procedural programming, better within specific scenario?

2437


What is this pointer in c plus plus?

1094


Why c language is called c?

1021


What is maximum size of array in c?

1047


What is difference between scanf and gets?

1280


What is the use of a semicolon (;) at the end of every program statement?

1517


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

1090