标题: 问一下各位16进制数后加的cu是什么意思 [打印本页]

作者: egsresrhtrhrtst    时间: 2023-4-17 17:51
标题: 问一下各位16进制数后加的cu是什么意思
问一下各位16进制数后加的cu是什么意思
#define TIM_CHANNEL_1                      0x00000000U                          /*!< Capture/compare channel 1 identifier      */
#define TIM_CHANNEL_2                      0x00000004U                          /*!< Capture/compare channel 2 identifier      */
#define TIM_CHANNEL_3                      0x00000008U                          /*!< Capture/compare channel 3 identifier      */
#define TIM_CHANNEL_4                      0x0000000CU                          /*!< Capture/compare channel 4 identifier      *



作者: coody_sz    时间: 2023-4-17 18:36
U表示无符号吧。不是CU,C是前面的数字0x0000000C
作者: Hephaestus    时间: 2023-4-17 18:39
c是数字,具体等于几不能告诉你,一下子告诉你了印象不深,u是unsigned的意思。
作者: li64331218    时间: 2023-4-17 22:44
Hephaestus 发表于 2023-4-17 18:39
c是数字,具体等于几不能告诉你,一下子告诉你了印象不深,u是unsigned的意思。

哈哈,你真调皮
作者: xuyaqi    时间: 2023-4-18 09:22
16进制数后加u,u就是unsigned,表示是无符号,也就是表示无符号的16进制数。




欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1