Static memory allocation
Patrick Percot
ppercot@free.fr
Sat Sep 25 21:56:00 GMT 2004
On Sat, 25 Sep 2004 10:14:01 +0100 (BST), Ankit Jain <ankitjain1580@yahoo.com> wrote
Hello Ankit,
> sorry boss but this also gives problem
>
> [ankit@Ankit fft]$ cat try2.c
> #include <stdio.h>
> int main()
> {
> double a[1450][1450];
> a[149][0]=999.999;
> printf("%lf\n",a[149][0]);
> return 0;
> }
> [ankit@Ankit fft]$ gcc try2.c
> [ankit@Ankit fft]$ ./a.out
> Segmentation fault
>
Sure, Claudio Bley gave you the solution (look at ulimit). I just
pointed you on another potential problem in your code.
[..Zappé 94 lignes et 2428 caractères..]
À+
PP
--
Groupe Morbihannais d'Utilisateurs de Logiciels Libres http://www.tuxbihan.org
GPG fingerprint = 1A4F E154 3D2C A20E E4CA A543 7951 C5C2 E44A A0B5
Patrick Percot.
More information about the Gcc-help
mailing list