memory allocation
Arthur Gold
agold@bga.com
Thu Nov 4 06:16:00 GMT 1999
What do you mean by "can't handle"?
I suspect there's something else going on in your code.
Have you run your program through gdb?
HTH,
--ag
Anand Ganesh wrote:
>
> Hi,
> Why doesnt gcc crib when I make an array declaration that it cant
> handle ?
> eg
> float array[10000][5][5];
>
> That there is a problem I realised b'cos some unrelated variables were
> getting changed. The reason I declared such an array instead of mallocing
> is that it is easier to pass 3D arrays rather than float*** which you cant
> use as a 3D array anymore (since dimensions are not known).
>
> Is there a way to get a warning from gcc ? (I did gcc -Wall)
>
> Thanks in advance for any help,
> ag.
>
>
--
Artie Gold, Austin, TX
mailto:agold@bga.com or mailto:agold@cs.utexas.edu
--
"If you come to a fork in the road, take it." L. P. Berra
More information about the Gcc-help
mailing list