The declaration unsigned integer
instructs the compiler to use unsigned operations on the variable. For example, the >>
operator has different behavior on unsigned integers vs signed (specifically, whether it should preserve the sign bit).
To print an unsigned integer, you should use the %u
formatting.