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 are external variables in c?
if p is a string contained in a string?
Explain the use of 'auto' keyword in c programming?
What is c definition?
When should structures be passed by values or by references?
find the sum of two matrices and WAP for it.
Explain how do you determine whether to use a stream function or a low-level function?
what does static variable mean?
Why is event driven programming or procedural programming, better within specific scenario?
What is this pointer in c plus plus?
Why c language is called c?
What is maximum size of array in c?
What is difference between scanf and gets?
What is the use of a semicolon (;) at the end of every program statement?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]