print long in c
snippet in c

c print long

user5459

unsigned long n;
long m;

printf("%lu %ld", n, m);

print long in c

user7115

You must use %ld to print a long int, and %lld to print a long long int.