Longlong is actually an int64 type. In winnt.h, you can see:
typedef _ _ int64 LONGLONG
So if you want to output, it depends on what format character __int64 uses. By checking MSDN, it is found to be: I64.
In the print format, you need to combine a d, that is, %I64d. For unsigned ULONGLONG, it is %I64u.