u in c code example
Example 1: why %u is used for ?
%d is used to specify an integer, %u is used to specify an unsigned integer .
Example 2: what is %u in C
The %u format specifier is implemented for fetching values from the address of a variable having unsigned decimal integer stored in the memory. This is used within printf() function for printing the unsigned integer variable.