For
int64_t
type:
int64_t t;
printf("%"PRId64"\n", t);
for uint64_t
type:
uint64_t t;
printf("%"PRIu64"\n", t);
you can also use PRIx64
to print in hexadecimal.
These macros are defined in inttypes.h
Read More:
- make Error: error: cast from ‘int32_t*’ {aka ‘int*’} to ‘int’ loses precision [-fpermissive]
- How to solve the problem that the output results of C + + program written in VS2010 flash by
- How to Solve Int Data overflow error
- UnhandledPromiseRejectionWarning Error: Can‘t set headers after they are sent (How to Fix)
- Keil :error: identifier “int8_ T “is undefined
- Keil : error: identifier “int8_ T “is undefined
- How to Fix NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver.
- Java gets the type t.class of generic t
- Stm32f103c8t6 in keil compiler error: # 67: expected a “}” solution
- Python: How to Fix “Ord() expected string of length 1, but int found”
- Go test print no output
- How to Fix error: ‘for’ loop initial declarations are only allowed in C99 mode
- Missing parents in call to ‘print’
- Print regularly to activate the printer (for some printers that need to be activated to print)
- How to launch powershell script in C#
- In Python, print() prints to remove line breaks
- To solve the error of T2a w2a a2w, error c2065:_ LPW “: undeclared identifier
- How do you set, clear and toggle a single bit in C?
- KeyError: “Can‘t open attribute (can‘t locate attribute: ‘nrx‘)“
- How to set the custom blood bar UI in UE4 and how to call it