This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] LAUNCHXL-F28P55X:能##39;不能在德州仪器(TI)使用大小的运算符##39;s Code Composer Studio! - TMS320F28P550SJ9.

Guru**** 1826070 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1405893/launchxl-f28p55x-can-t-use-sizeof-operator-in-texas-instrument-s-code-composer-studio---tms320f28p550sj9

器件型号:LAUNCHXL-F28P55X

工具与软件:

每当我使用 sizeof 运算符时、无论输入参数如何、它返回的值均为零。 请帮我解决这个问题!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    将 cast 键入 int 作为`printf ("%d"、(int) sizeof (int));- sizeof 运算符实际上可以工作、但无法将其值打印到控制台、除非您将其键入 int 或任何其他类型!