How to print a uint64_t as hex? [duplicate]

This question already has an answer here: How to print a int64_t type in C 4 answers I’m not able to get rid of this warning: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’ [-Wformat=] printf(“my_number: %#016llxn”, my_number); In my_test.c: #include <stdint.h> #include <stdio.h> int main(int argc, char argv[]) { uint64_t…
Read more