Why this code is not working?
#include <stdio.h>
main()
{
UINT64_t ram = 90;
printf("%d""\n", ram);
}
I got the Following errors:
In function \u2018main\u2019
error: \u2018UINT64_t\u2019 undeclared (first use in this function)
error: (Each undeclared identifier is reported only once
error: for each function it appears in.)
error: expected \u2018;\u2019 before \u2018ram\u2019
#include <stdint.h>
anduint64_t
uint64_t
?uint64_t
, note the case. And the properprintf
specifier foruint64_t
is from<inttypes.h>
, and uses literal-concatenation to form the proper spec, like this:printf("%" PRIu64 "\n", val);
uint64_t
.