• 数组长度是预期长度的两倍
  • 其它

使用大括号定义的数组长度是预期长度的两倍

char x[]="abcdefg";
   char y[]={'h','i','j','k','l','m','n'};

   int xl = strlen(x),yl = strlen(y);
   int i=0;
   //printf("%s",x[i]);

   puts(x);
   puts(y);


  • 就几件    2020-06-15 11:41:34
  • 阅读 745    收藏 0    回答 1
  • 邀请
  • 收藏
  • 分享
发送
登录 后发表评论
  • 51testing软件测试圈微信