Dumb question alert - What does "u" do in "0u"?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I am not really referring to "u" in uint16, but when a value is passed to a function, it is written as this for example: ADC_SAR_Seq_1_GetResult16(0u).

Is this a Cypress thing? I know I am going to feel dumb once the answer is written but I just do not know...

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

It just tells the compiler that the constant has to be interpreted as an unsigned int.

Bob

View solution in original post

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

It just tells the compiler that the constant has to be interpreted as an unsigned int.

Bob

0 Likes