Q(i) write a program in C language to input data into a string. Insert a character into a specified location into the string.Print on the screen entered string and the string after deletingthe character. Q1(ii) write a program in C to input data into string and findout its length without using any userdefiend function Q(i) write a program in C language to input data into a string. Insert a character into a specified location into the string.Print on the screen entered string and the string after deletingthe character. Q1(ii) write a program in C to input data into string and findout its length without using any userdefiend function
Explanation / Answer
please rate - thanks I don't understand part 1. you say insert into the string, but thensay print after deleting the character #include #include int main() { int i,len=0; char a[50]; char *in; printf("Enter a string: "); in=gets(a); while(a[len]!='') {len++; } printf("the string has %d characters They are(rememberblanks are a character): ",len); for(i=0;i