update l8.c
This commit is contained in:
parent
508468e0be
commit
8607b48942
1 changed files with 4 additions and 5 deletions
9
c/l8.c
9
c/l8.c
|
|
@ -4,10 +4,9 @@
|
||||||
int main() {
|
int main() {
|
||||||
char x[100] = "hello";
|
char x[100] = "hello";
|
||||||
x[0] = 'H';
|
x[0] = 'H';
|
||||||
x[1] = 'a';
|
x[1] = 'i';
|
||||||
int index = 2;
|
strcpy(&x[2], &x[5]);
|
||||||
strcpy(&x[index], &x[index + 1]);
|
strcat(x, "!");
|
||||||
printf("%s\n", x);
|
|
||||||
int len = strlen(x);
|
int len = strlen(x);
|
||||||
printf("%d\n", len);
|
printf("Symbol: %d\n%s", len, x);
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue