This are some basic examples on how to use printf basic format parameters. This was tested in Visual C++ 2008 SP1.

Code:
 printf("\n%lu", value);   // unsigned long      (32 bit )
 printf("\n%llu", value);  // unsigned long long (64 bit )
 printf("\n%ld", value);   // long (32 bit)
 printf("\n%lld", value);  // long long (64 bit)
 printf("\n%X", value);    // hex long ( 32 bit)
 printf("\n%llX", value);  // hex long long (64 bit)
 printf("\n%f",  value);    // float  (32 bit) or double (64 bit)
 printf("\n%Lf",  value);    //long double