%u used for code example Example: why %u is used for ? %d is used to specify an integer, %u is used to specify an unsigned integer .