这次遇到一个格式输出异常,记录一下

编译环境:

记录longlong类型格式输出问题

问题代码:

记录longlong类型格式输出问题

    printf("PortOut: %13d   :   ", printf_statistics_flag[portNum].attempted_to_receive);

其中attempted_to_receive为long long类型

错误显示:

进行初始化之后打印仍然为

记录longlong类型格式输出问题

发现数据越界

修正后:

记录longlong类型格式输出问题

目前打印数据均为0

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
猜你喜欢
  • 2021-10-10
  • 2021-08-06
  • 2022-01-26
  • 2021-06-01
  • 2022-12-23
  • 2021-06-08
  • 2021-06-21
相关资源
相似解决方案