From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?q?Ankit=20Jain?= Subject: Memory Allocation Problem Date: Wed, 15 Sep 2004 07:02:37 +0100 (BST) Sender: gcc-help-owner@gcc.gnu.org Message-ID: <20040915060237.55405.qmail@web52910.mail.yahoo.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: List-Unsubscribe: List-Archive: List-Post: List-Help: List-Id: Content-Type: text/plain; charset="us-ascii" To: gcc , linux prg 1 #include 2 int main() 3 { 4 double a[1450][1450]; 5 6 a[1449][0] = 999; 7 printf( "%lf\n", a[1449][0] ); 8 return 1; 9 } it gives segementation fault if i use malloc also it gives wrong result what to do? ankit ________________________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html