I'm trying to represent 16gb in bytes, and uint64_t
throws an error.
What kind of data type should I use to represent it?
unsigned long int
also throws an error.
error: integer overflow in expression [-Werror=overflow]
uint64_t TESTBYTES = 16 * 1024 * 1024 * 1024;
See Question&Answers more detail:os