You can also use %zd (NSInteger) and %tu (NSUInteger) when logging to the console. NSInteger integer = ; NSLog(@"first number: %zd", integer); NSUInteger uinteger = ; NSLog(@"second number: %tu", uinteger
zSpecifies that a following [...] conversion specifier applies to a size_t or the corresponding signed integer type argument; size_t is used to represent the size of any object (including arrays) in the particular implementation. It is used as the re