codings side used U i dont know what is that

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

codings side used U i dont know what is that

551 Views
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

Labels (1)
0 Kudos
3 Replies

466 Views
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 Kudos

466 Views
aravindpb5009
Contributor III

Thanks for your help

Thanks & regards

Aravind p

0 Kudos

466 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

You are welcome!

0 Kudos