#include <stdio.h>
#include <stdlib.h>
#include<string.h>
void main()
{
char a[200],n,c,b;
int i;
printf("enter the new string: ");
scanf("%20s",a);
printf("enter the character to be replaced: ");
scanf("%20s",b);
printf("enter the new character: ");
scanf("%20s",c);
for(i=0;a[i]!='\0';i++)
{
if(b==a[i])
{
a[i]=c;
}
}
printf("%s",a);
}
i have 0 errors when compiler starts to work.it is stopped working