The printf function takes an argument type, such as %d or %i for a signed int. However, I don\'t see anything for a
printf
%d
%i
signed int
I think you mean:
unsigned long n; printf("%lu", n); // unsigned long
or
long n; printf("%ld", n); // signed long