l8.c 243 B

12345678910111213
  1. #include <stdio.h>
  2. #include <string.h>
  3. int main() {
  4. char x[100] = "hello";
  5. x[0] = 'H';
  6. x[1] = 'a';
  7. int index = 2;
  8. strcpy(&x[index], &x[index + 1]);
  9. printf("%s\n", x);
  10. int len = strlen(x);
  11. printf("%d\n", len);
  12. }