could u tell me the problems in
defining a 3D double array. that is
double a[1000][1000][1000];

While running the program, it gives segmentation fault errror.
Please tell me , wat should be the limit of the array or how to come arround this.
Thanks and Regards
srishekh

post the code maybe the array is not the problem

could u tell me the problems in
defining a 3D double array. that is
double a[1000][1000][1000];

Why do new programmers think their computers have an infinite amount of memory? That array takes 8,000,000,000 or about 8 Gig of RAM! Redesign your program or use a file.

OH never noticed that

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.