From 8607b489421ea2068f95448f355b5cc73b690b0b Mon Sep 17 00:00:00 2001 From: Stepan Date: Fri, 8 May 2026 19:30:29 +0300 Subject: [PATCH] update l8.c --- c/l8.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/c/l8.c b/c/l8.c index 4f3cf7c..0b30fdf 100644 --- a/c/l8.c +++ b/c/l8.c @@ -4,10 +4,9 @@ int main() { char x[100] = "hello"; x[0] = 'H'; - x[1] = 'a'; - int index = 2; - strcpy(&x[index], &x[index + 1]); - printf("%s\n", x); + x[1] = 'i'; + strcpy(&x[2], &x[5]); + strcat(x, "!"); int len = strlen(x); - printf("%d\n", len); + printf("Symbol: %d\n%s", len, x); } \ No newline at end of file