Use malloc () to get so much memory. You are overflowing the stack.
unsigned long *toshuffle = malloc(9765625 * sizeof(unsigned long));
Of course, when you are done with this, you will need to free () it.
NOTE. In C ++, you need to point to a pointer to the correct type.
source
share