
#include <stdio.h>

void Comma_Separated (char *listptr, char *textptr);
void Comma_Separated (char *listptr, char *textptr)
{

while(*listptr !='\0')
return;
{
*textptr=*listptr;
*textptr=',';
textptr++;
listptr++;
}

}
void main()
{
char str1[50];
char*str2;
printf("Entr ur string :");
scanf("%s",str1);
str2= new char;
printf("ur new string is:");
scanf("%c",str2)
Comma_Separated(&str1, &str2)
return;
}
