Why RAM? It is virtual memory! So, your data will reside not only in physical RAM, but also in the swap file on the disk. For example, my system has 512 Mbytes of physical RAM, but I can easy create data structures with the size of 1 Gbyte or more. The maximum size depends only on available space for the swap file and on the maximum address space for one process in the OS.btbass said:That is a big array!
What is it an array of? If it is an array of int, 2 bytes per int, thats 1000 * 1000 * 1000 * 2 bytes of memory.
Does your machine have > 2Gig of ram?
Try a smaller array, if that works, the problem is size!
1. Try redesign your algorithm so it does not use 2GB for an array of data.boy said:how can i have a big array like  in c++, i use gcc, but i get run time error