Yes, it's because of the large array dimensions - you're trying to allocate 3725GB of data (1000000 * 1000000 * 4 bytes) for the array a.
By the way - which compiler do you use? gcc will give an error and refuse to compile such code.
__________________
Fhtagn nagh Yog-Sothoth
Last edited by deemon; 1st August 2008 at 06:38 AM.
|