printing long int in c code example Example: print long in c You must use %ld to print a long int, and %lld to print a long long int.