cout << sizeof(variable);

输出结果为变量所占用的 字节数量。

sizeof() 函数不需要头文件

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-10
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
  • 2021-08-09
相关资源
相似解决方案