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
What is uint8 in c?
Define Array of pointers.
Why do we use & in c?
What is the argument of a function in c?
What is an example of structure?
What is the benefit of using an enum rather than a #define constant?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
How many types of functions are there in c?
Explain what is dynamic data structure?
When do we get logical errors?
What is bubble sort in c?
Define the scope of static variables.
Explain what are the __date__ and __time__ preprocessor commands?
Explain what is a 'locale'?
Explain how can I open a file so that other programs can update it at the same time?