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
formula to convert 2500mmh2o into m3/hr
Write a program to generate the Fibinocci Series
What is a c token and types of c tokens?
Which is the best website to learn c programming?
What is dynamic dispatch in c++?
How can I remove the trailing spaces from a string?
What are register variables in c?
What is a keyword?
What is data types?
What is .obj file in c?
What is #line used for?
Are there constructors in c?
How reliable are floating-point comparisons?
How do we open a binary file in Read/Write mode in C?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }