Напишитефункцию удаления из строки n-символов, начиная с q-го.
#include<-conio.h>-
#include<-stdio.h>-
#include<-string.h>-
char*s=»You are fucker!!!»-
int n = 5,q = 2-
void main()
{
-clrscr()-
-int i-
-intls=strlen(s)-
-printf(«%s\-n»,s)-
-printf(«delete %d symbols from %d position\-n»,n,q)-
-if(ls-q+1<-n)
— — — -n=ls-q+1-
-if(n<-=ls)
— — — {
— — — -i=q-
— — — — for(-i<-ls-n+1-i++,q++)
— — — — — — — — s[q]=s[q+n]-
— — — }-
s[q-1]=’\-0′-
printf(«The result: %s»,s)-
getch()-
}