For the simple code below, whenever I enter the value 200,000 (or any other high value), the program crashes:
long size;
printf("Enter the size of the array to be sorted: ");
scanf("%ld",&size);
Can anybody tell me why? as based on my information, the range of long is much greater than 200,000
TIA
Edit: the prev piece of code is followed by those declarations.
int arrMerge[size];
int arrQuick[size];
int arrSelect[size];
int arrInsert[size];
When I've commented the whole program except those lines (and the ones above) it has crashed. The following terminating message was given:
Process returned -1073741571 (0xC00000FD) execution time : 2.419 s Press any key to continue.