linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Memory Allocation Problem
@ 2004-09-15  6:02 Ankit Jain
  2004-09-15 12:01 ` Eljay Love-Jensen
  2004-09-15 15:35 ` Suciu Flavius
  0 siblings, 2 replies; 5+ messages in thread
From: Ankit Jain @ 2004-09-15  6:02 UTC (permalink / raw)
  To: gcc, linux prg

      1 #include <stdio.h>
      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

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <4147E06B.4030303@redpinesignals.com>]

end of thread, other threads:[~2004-09-15 15:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-15  6:02 Memory Allocation Problem Ankit Jain
2004-09-15 12:01 ` Eljay Love-Jensen
2004-09-15 15:35 ` Suciu Flavius
2004-09-15  6:38   ` Chandan Chopra
     [not found] <4147E06B.4030303@redpinesignals.com>
2004-09-15  6:34 ` Ankit Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).