编辑代码

#include <stdio.h>
#include <string.h>
int main () {
char ch1[]="bit";
char ch2[]={'b','i','t'};
printf("%s\n",ch1);
printf("%s\n",ch2);
printf("%d\n",strlen(ch1));
printf("%d\n",strlen(ch2));
    return 0;
}