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
In a switch statement, what will happen if a break statement is omitted?
How would you obtain the current time and difference between two times?
Explain how do you determine whether to use a stream function or a low-level function?
Tell me what is the purpose of 'register' keyword in c language?
How can you tell whether two strings are the same?
Why do we use int main?
Do you have any idea about the use of "auto" keyword?
What is the use of static variable in c?
What is the use of parallelize in spark?
Why do we need arrays in c?
What does dm mean sexually?
Explain void pointer?
What is difference between arrays and pointers?
Can an array be an Ivalue?
What are 3 types of structures?