I declare a variable for a 64 bit counter as :
long long call_count;
What is the format specifier that I should use in print statements?
<Microsoft and Watcom use %I64d
(capital eye), others use %lld
(lowercase ell ell).
This one and even little more has been described here: cross-platform printing of 64-bit integers with printf
TL;DR: You can use PRId64 macro (from inttypes.h) to print 64 bit integers in decimal in a semi-portable way. There are also other macros (like PRIx64).
long long t1; //signed
unsigned long long t2; //unsigned
printf("%lld",t1);
printf("%llu",t2);
It's "%lli"
(or equivalently "%lld"
)
Maybe %lld? I think this is the format for gcc, don't know anything about Diab C compiler.
It is %lld for signed and %llu for unsigned