my/c/l8.c
2026-05-08 17:14:36 +03:00

13 lines
No EOL
243 B
C

#include <stdio.h>
#include <string.h>
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);
int len = strlen(x);
printf("%d\n", len);
}