Skip to content

Commit 99c79c3

Browse files
committed
修改: 1.c
1 parent aa85b6d commit 99c79c3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

1.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#include <stdio.h>
22
#include <stdlib.h>
3+
#include <string.h>
34
int main(){
4-
char *str ="123";
5-
printf("%s",str);
5+
char str1[20]="114514";
6+
char *str2 ="1919810";
7+
//char str3[]= *str2;
8+
printf("%s\n%s\n",&str1,str2);
9+
//strcpy(str1,str3);
10+
//printf("strcpy(str1,str3):%s\n",str3)
611
}

0 commit comments

Comments
 (0)