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
Is fortran still used today?
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.
What is the difference between typedef and #define?
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
what are bit fields in c?
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
Which is better malloc or calloc?
What does stand for?
What are the salient features of c languages?
How can I do serial ("comm") port I/O?
How do you do dynamic memory allocation in C applications?
how should functions be apportioned among source files?
Explain b+ tree?
What is the difference between printf and scanf in c?
How are strings stored in c?