The printf function takes an argument type, such as %d or %i for a signed int. However, I don't see anything for a long value.
printf
%d
%i
signed int
long
Put an l (lowercased letter L) directly before the specifier.
l
unsigned long n; long m; printf("%lu %ld", n, m);
1.4m articles
1.4m replys
5 comments
56.9k users