怎麼更改enum(列舉)的長度?

寫代碼時,enum預設是32bits的資料
如果我想將其設定為8bits需要如何操作?

此enum會與其他長度的enum以及變數一起被帶入其他結構之中.

使用CS+ for CC

  • Hello,
    I am an Admin of Rulz.
    Since 2020 NUEDC has ended, there may be no reply. We recommend that you make a technical inquiry to Renesas Electronics from "Contact Support" at the URL below.

    URL: zh-support.renesas.com/dashboard
    regards,

    你好,

    我是Rulz的管理员。

    自2020年NUEDC结束以来,可能没有任何回复。 我们建议您通过以下URL的“联系支持”向瑞萨电子进行技术咨询。


    网址:https://zh-support.renesas.com/dashboard

    问候,