printf in c long code example
Example 1: c print long
unsigned long n;
long m;
printf("%lu %ld", n, m);
Example 2: print long in c
You must use %ld to print a long int, and %lld to print a long long int.
unsigned long n;
long m;
printf("%lu %ld", n, m);
You must use %ld to print a long int, and %lld to print a long long int.