How do I print a long int to the screen? I know that to
print an int to the screen, I format it thus: printf("%d"...),
but how do I print a long? Moreover, how do I do it
in hex?
Printable View
How do I print a long int to the screen? I know that to
print an int to the screen, I format it thus: printf("%d"...),
but how do I print a long? Moreover, how do I do it
in hex?
'%ld' to display long ints, and '%x' to show it in hex.