Thread: C 2D arrays
View Single Post
  #2   (View Single Post)  
Old 1st August 2008
deemon's Avatar
deemon deemon is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Estonia
Posts: 50
Default

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.
Reply With Quote