To Write a C program to remove the repeated characters in
the entered expression or in entered characters(i.e)
removing duplicates.
Answers were Sorted based on User's Feedback
Answer / naveen
#include<stdio.h>
#include<string.h>
int main()
{
char a[100];
char b[100];
int i,j,k,l,m=0;
printf("enter the string
");
scanf("%s",a);
l=strlen(a);
for(i=0;i<l;i++)
{
k=0;
for(j=0;j<l;j++)
{
if(a[i]==b[j])
{
k++;
}
}
if(k==0)
{
b[m]=a[i];
m++;
}
}
b[m]='