#include <stdio.h>
#include<string.h>
int main() {
char a[50],b[50];// same sized arrays
for(int j =0;j<50;j++){
b[j]='b';a[j]='a';// initializing with the same number of elements
}
printf("the size of a is %ld,",strlen(a));
printf("the size of B is %ld",strlen(b));
return 0;
}
输出为
a的大小是50,B的大小是54
但是我期望的是a的大小是50B的大小是50
这里是什么问题?
这里是什么问题?