codings side used U i dont know what is that

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

codings side used U i dont know what is that

802 次查看
aravindpb5009
Contributor III

hai 

   please explain me what is U we are using in coding side for example #define BOARD_LED_PORT 0U
#define BOARD_LED_PIN 12U    let me know for what is u 

regards 

aravind p

标签 (1)
0 项奖励
回复
3 回复数

717 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

HI Aravind palanisamy 

This is a C language question.

U is integer literal, it allows values of integer type to be used in expressions directly.

Below type variable can use suffix  U:

unsigned int
unsigned long int
unsigned long long int

For more information, please search "integer literal" with search engine. You will know more.


Have a great day,
Jun Zhang

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复

717 次查看
aravindpb5009
Contributor III

Thanks for your help

Thanks & regards

Aravind p

0 项奖励
回复

717 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

You are welcome!

0 项奖励
回复