69,381
社区成员
发帖
与我相关
我的任务
分享
#include<stdio.h>
#include<string.h>
int main()
{
char c[] = "China";
char s[5] = {'C','h','i','n','a'};
printf("%d\n", strlen(s));
printf("%d\n", sizeof(s));
for(int i = 0; i < 10; i++){
printf("%c, %p\n", s[i], &s[i]);
}
return 0;
}