在keil c51 程序中,若定义数组 volatile unsigned char  data[3]={'G','G','G'};使用strlen(&data);得到的长度是不对的,若定义volatile unsigned char  data[5]={'G','G','G'};

使用strlen(&data);得到的长度将是3.

相关文章:

  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2021-12-18
  • 2021-11-07
  • 2021-09-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-08
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
相关资源
相似解决方案