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

Is fortran still used today?

607


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2272


What is the difference between typedef and #define?

552


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2240


what are bit fields in c?

609






why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

656


Which is better malloc or calloc?

656


What does stand for?

601


What are the salient features of c languages?

627


How can I do serial ("comm") port I/O?

693


How do you do dynamic memory allocation in C applications?

634


how should functions be apportioned among source files?

627


Explain b+ tree?

632


What is the difference between printf and scanf in c?

757


How are strings stored in c?

598