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 the three constants used in c?
what is ur strangth & weekness
Is flag a keyword in c?
Why should I prototype a function?
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
Under what circumstances does a name clash occur?
What is getche() function?
praagnovation
Are the outer parentheses in return statements really optional?
What is build process in c?
Differentiate between new and malloc(), delete and free() ?
program to convert a integer to string in c language'
How can I list all of the predefined identifiers?
Can we declare variable anywhere in c?
What are file streams?