3 回答
TA贡献1887条经验 获得超5个赞
char *a = "This is a string"
char a[] = "This is a string";
strcpy()
char *a = malloc(256);strcpy(a, "This is a string");
malloc()
free()
char *a = "hello";
a[0]
'c'
printf("hello");
"hello"
printf("hello");
cello
!)
TA贡献2012条经验 获得超12个赞
char *foo = "hello world";
- 3 回答
- 0 关注
- 950 浏览
添加回答
举报