hi well i had tried to enquire about this problem i was not able to find the solution. i know it workds when i declare the array globally. i know if i use malloc it will work and i am using the same in my program but this question is again in my mind that what could be the reason that it dosent work here on my system because last time when i asked this question on some sytem it was able to run which they said that they have less emory then that of my system my system config.: redhat linux 9.0 +512 RAM this is what my terminal displays [ankit@Ankit fft]$ cat try2.c #include <stdio.h> int main() { double a[1450][1450]; a[1450][0]=999.999; printf("%lf\n",a[1450][0]); return 0; } [ankit@Ankit fft]$ gcc try2.c [ankit@Ankit fft]$ ./a.out Segmentation fault [ankit@Ankit fft]$ i just want to know that if there is some problem related to stack how t oget rid of it thanks ANkit ________________________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html