diff --git a/c/l8.c b/c/l8.c new file mode 100644 index 0000000..4f3cf7c --- /dev/null +++ b/c/l8.c @@ -0,0 +1,13 @@ +#include +#include + +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); +} \ No newline at end of file