字符串

字符串

字符串就是一串字符,用双引号括起来的一串字符

字符数组-数组是一组形同类型的元素

/#include<string.h>
/#include<stdio.h>
int main()
{
char arr[] = "hello";
printf("%d\n", strlen(arr));
return 0;
}
//字符串的结束标志是\0
//字符串长度不包括\0

posted @ 2022-11-06 12:47  Yeah晓夫  阅读(18)  评论(0)    收藏  举报