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...

To Write a C program to remove the repeated characters in
the entered expression or in entered characters(i.e)
removing duplicates.

Answer Posted / guest

#include <iostream.h>
int main()
{
char str[10],str1[10];
int i;
cout<<"enter the string";
cin>>str[];
for (i = 0;i<9;i++)
{
if (str[i] != str[i+1])
str1[i]=str[i];
}
cout<<str1[];
return 0;
}

Is This Answer Correct ?    8 Yes 28 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Cluster head selection in Wireless Sensor Network using C programming language.

3674


how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

2616


create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00

6918


Write a routine to implement the polymarker function

4836


how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

3597


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

4437


How to palindrom string in c language?

10814


why nlogn is the lower limit of any sort algorithm?

2787


write a simple calculator c program to perform addition, subtraction, mul and div.

3675


Write a program to model an exploding firecracker in the xy plane using a particle system

4092


write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

4641


Develop a routine to reflect an object about an arbitrarily selected plane

3552


What is full form of PEPSI

2364


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2719


How can you relate the function with the structure? Explain with an appropriate example.

3388