U_int64_t array
3 answers
You announce NNUM = 2*2^19 == 2<<19 == 1048576
.
and try to stack 64 bits * 1048576 = number of bits * multiple cells. This is 8.5 MegaBytes
, this is too much to allocate on the stack, you can try to allocate it on the heap and check if it actually works using the return value malloc
.
+2
source to share